You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: