Skip to content

The Nutrition game regularly gets stuck when sending the changes #1264

@fgouget

Description

@fgouget

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:

  1. Log in and open https://hunger.openfoodfacts.org/nutrition
  2. Play the game until it gets stuck. It may take 10-20 products.
  3. 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

No one assigned

    Projects

    Status

    To Discuss & Validate

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions