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

Domain seems wrong in documentation (.net -> .org) #11311

Open
denis-migdal opened this issue Jan 30, 2025 · 0 comments
Open

Domain seems wrong in documentation (.net -> .org) #11311

denis-migdal opened this issue Jan 30, 2025 · 0 comments

Comments

@denis-migdal
Copy link

What

In documentation : https://openfoodfacts.github.io/openfoodfacts-server/api/ref-v2/#get-/api/v2/search

world.openfoodfacts.net produces a 502 Bad Gateway error. Using world.openfoodfacts.org works.

curl -X GET "https://world.openfoodfacts.net/api/v2/search?brands_tags=lu&page=24&page_size=24" \
 -H 'accept: application/json'

It seems this is redirected to proxy1.openfoodfacts.org:

world.openfoodfacts.net	canonical name = proxy1.openfoodfacts.org.

Querying proxy1.openfoodfacts.org directly gives the following error:

curl: (60) SSL: no alternative certificate subject name matches target host name 'proxy1.openfoodfacts.org'
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Steps to reproduce the behavior

  1. Make a curl request on world.openfoodfacts.net.

Expected behavior

Not getting a 502 error.

Type of device

  • REST-API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To discuss and validate
Status: Todo
Status: To be triaged
Development

No branches or pull requests

2 participants