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

PXD-2297 ⁃ providing file size of 0 to indexd GET /urls creates unexpected error #190

Open
philloooo opened this issue Nov 8, 2018 · 0 comments

Comments

@philloooo
Copy link
Contributor

philloooo commented Nov 8, 2018

At time of writing, indexd has a GET /urls endpoint to “Get a list of urls that match query params”.

You can query by size, hash, and/or ids.

Querying by size gives the expected output…

$ curl ~~X GET https://zlchitty.planx~~pla.net/index/urls/?size=42
{"hashes":{},"limit":100,"size":42,"start":0,"urls":[]}

$ curl ~~X GET https://zlchitty.planx~~pla.net/index/urls/?size=1
{"hashes":{},"limit":100,"size":1,"start":0,"urls":[]}

…unless you input size=0.

$ curl ~~X GET https://zlchitty.planx~~pla.net/index/urls/?size=0
{"error":"Please provide size/hashes/ids to filter"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant