Skip to content

cmd/kivik: Querying view returns improper error #953

@flimzy

Description

@flimzy

Setup:

$ kivik put http://admin:abc123@localhost:6004/foo/_design/foo -d '{"views":{"bar":{"map":"function(doc) { emit(null, 1); }","reduce":"function(sum, values) { return sum(values); }"}}}'
1-6e5c284916ef27f11c2cba51a3522b58

Command:

$ kivik get http://admin:abc123@localhost:6004/foo/_design/foo/_view/bar
Error: Not Found: missing

But curl:

$ curl -X GET http://admin:abc123@localhost:6004/foo/_design/foo/_view/bar
{"rows":[
{"key":null,"value":null}
]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions