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

Inappropriate Error Handling When Adding Images Without a Barcode #11253

Open
N3jm4n opened this issue Jan 16, 2025 · 0 comments
Open

Inappropriate Error Handling When Adding Images Without a Barcode #11253

N3jm4n opened this issue Jan 16, 2025 · 0 comments

Comments

@N3jm4n
Copy link

N3jm4n commented Jan 16, 2025

What

When attempting to add an image without a barcode, the system does not properly handle the scenario. Instead of displaying a user-friendly error message about the missing barcode, the following issues occur:

  • A message stating "Upload error" is displayed.
  • The browser console logs an error:
    POST https://world.openfoodfacts.org/cgi/product.pl 500 (Internal Server Error).

Steps to reproduce the behavior

  1. Go to https://world.openfoodfacts.org/cgi/product.pl?type=search_or_add&action=display.
  2. Attempt to add a product image that does not contain a barcode.
  3. Observe the error messages displayed on the interface and in the console.

Expected behavior

  • The system should display a clear, user-friendly message indicating that the uploaded image does not contain a barcode.
  • The system should not throw a 500 Internal Server Error or any other unexpected error.

Type of device

Browser: Google Chrome
Version: 131.0.6778.265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To discuss and validate
Development

No branches or pull requests

1 participant