Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/kivik: Querying view returns improper error #953

Open
flimzy opened this issue Apr 26, 2024 · 0 comments
Open

cmd/kivik: Querying view returns improper error #953

flimzy opened this issue Apr 26, 2024 · 0 comments
Labels

Comments

@flimzy
Copy link
Member

flimzy commented Apr 26, 2024

Setup:

$ kivik put http:https://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:https://admin:abc123@localhost:6004/foo/_design/foo/_view/bar
Error: Not Found: missing

But curl:

$ curl -X GET http:https://admin:abc123@localhost:6004/foo/_design/foo/_view/bar
{"rows":[
{"key":null,"value":null}
]}
@flimzy flimzy added the bug label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant