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

API: 404 is returned for some endpoints but not others #43

Open
hugovk opened this issue Nov 28, 2021 · 0 comments
Open

API: 404 is returned for some endpoints but not others #43

hugovk opened this issue Nov 28, 2021 · 0 comments

Comments

@hugovk
Copy link
Contributor

hugovk commented Nov 28, 2021

For packages with zero downloads, these return 404:

However, these return data but with empty data:

https://pypistats.org/api/packages/sugar/python_major
https://pypistats.org/api/packages/sugar/python_minor
https://pypistats.org/api/packages/sugar/system

{
"data": [],
"package": "sugar",
"type": "python_major_downloads"
}
{
"data": [],
"package": "sugar",
"type": "python_minor_downloads"
}	
{
"data": [],
"package": "sugar",
"type": "system_downloads"
}

Similarly, for packages which don't exist:

https://pypistats.org/api/packages/notfound123444/recent
https://pypistats.org/api/packages/notfound123444/overall

These return "data": []:

https://pypistats.org/api/packages/notfound123444/python_major
https://pypistats.org/api/packages/notfound123444/python_minor
https://pypistats.org/api/packages/notfound123444/system

Should they all return 404?

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