-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Description
What
The Nutrition game regularly gets stuck when sending the changes: the Send button has the spinner and the next product is never loaded.
Steps to reproduce the behavior:
- Log in and open https://hunger.openfoodfacts.org/nutrition
- Play the game until it gets stuck. It may take 10-20 products.
- When the game gets stuck the JavaScript console shows the following errors which appear when sending the result:
Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://robotoff.openfoodfacts.org/api/v1/insights/annotate. Raison : échec de la requête CORS. Code d’état : (null).
Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.
onSubmit https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:1789
AsyncFunctionThrow self-hosted:804
(Asynchrone : async)
handleEvent https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:366
emitSubmitEvent https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:1293
submitFormData https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:1293
onSubmit https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:1357
handleEvent https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:366
H0 https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:395
renderSubmitRow https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:1302
handleEvent https://hunger.openfoodfacts.org/assets/index-BfEHioUo.js:366
The "cross-origin" issue makes it look like it may not just be a network error.
Expected behavior
- Load the next product to fix.
Workaround
- Reload the page. This normally gets the same product.
- Usually the data has been saved despite the issue which can be checked in game or by clicking "View Product".
- Clicking on Send again is likely to get stuck again. Instead click on Ignore since the data has been fixed already.
Platform (Desktop, Mobile, Hunger Games)
- OS: Firefox 141.0
- Platform: Debian 12
Part of
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To Discuss & Validate