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

Code crash for EMB suggestions #10049

Closed
monsieurtanuki opened this issue Mar 29, 2024 · 2 comments · Fixed by #10113 or #10123
Closed

Code crash for EMB suggestions #10049

monsieurtanuki opened this issue Mar 29, 2024 · 2 comments · Fixed by #10113 or #10123
Assignees
Labels
🐛 bug This is a bug, not a feature request. ✏️ Editing - Auto Suggest Providing autosuggest for taxonomized fields. Mostly used in editing scenarii 🎯 P0

Comments

@monsieurtanuki
Copy link
Contributor

What

  • The problem started a few days ago, perhaps from @damil's bf084bb?
  • Don't know if it's a problem of data (not supposed to have quotes in the results), code or settings.

Steps to reproduce the behavior

https://world.openfoodfacts.org/api/v3/taxonomy_suggestions?tagtype=emb_codes&lc=fr&string=fR&limit=25

Software error:
Can't use string ("FR 01.004.002 EC") as a HASH ref while "strict refs" in use at /srv/off/lib/ProductOpener/APITaxonomySuggestions.pm line 133.
For help, please send mail to the webmaster ([contact@openfoodfacts.org](mailto:contact@openfoodfacts.org)), giving this error message and the time and date of the error.
@teolemon teolemon added ✏️ Editing - Auto Suggest Providing autosuggest for taxonomized fields. Mostly used in editing scenarii 🐛 bug This is a bug, not a feature request. 🎯 P0 labels Mar 29, 2024
@hangy
Copy link
Member

hangy commented Mar 29, 2024

Not bf084bb. I can also reproduce the bug in the parent commit 0627780.

@stephanegigandet
Copy link
Contributor

The bug was probably introduced by https://github.com/openfoodfacts/openfoodfacts-server/pull/9395/files , I will fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. ✏️ Editing - Auto Suggest Providing autosuggest for taxonomized fields. Mostly used in editing scenarii 🎯 P0
Projects
4 participants