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

If I use the stats API with a non-existent key or value, I get a null back instead of a JSON response #120

Open
Tracked by #70
aleene opened this issue Nov 9, 2022 · 0 comments

Comments

@aleene
Copy link

aleene commented Nov 9, 2022

What

If I use the stats api with a non-existent key or value, I get a null back.

Steps to reproduce the behavior:

try: https://api.folksonomy.openfoodfacts.org/products/stats?k=ttrwtrqrtet

also:
https://api.folksonomy.openfoodfacts.org/product/3760091720112

also when putting a key/value that does not exist yet

Expected behavior

A nice json

@aleene aleene added the 🐛 bug Something isn't working label Nov 9, 2022
@aleene aleene changed the title bug API response Nov 10, 2022
@teolemon teolemon changed the title API response If I use the stats API with a non-existent key or value, I get a null back instead of a JSON response Nov 29, 2022
@teolemon teolemon added the P4 label Nov 29, 2022
@teolemon teolemon removed the 🐛 bug Something isn't working label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants