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

ClientException: ClientException: Bad file descriptor, uri=https://world.openfoodfacts.org/cgi/product_jqm2.pl #5699

Open
sentry-io bot opened this issue Oct 14, 2024 · 4 comments · May be fixed by openfoodfacts/openfoodfacts-server#10915

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 14, 2024

Sentry Issue: SMOOTHIE-3AS

ClientException: ClientException: Bad file descriptor, uri=https://world.openfoodfacts.org/cgi/product_jqm2.pl
@monsieurtanuki
Copy link
Contributor

@teolemon @stephanegigandet It looks like we receive from the server "empty" nutriscores with non-matching icons, like https://static.openfoodfacts.org/images/attributes/dist/nutriscore-.svg

@stephanegigandet
Copy link
Contributor

@monsieurtanuki do we have an example of the request with empty nutriscore, or a barcode?

@monsieurtanuki
Copy link
Contributor

@stephanegigandet https://world.openfoodfacts.org/api/v3/product/3148171677687/?lc=en&tags_lc=en&cc=uk&fields=attribute_groups

Image

{
    "code": "3148171677687",
    "errors": [],
    "product": {
        "attribute_groups": [
            {
                "attributes": [
                    {
                        "description": "",
                        "description_short": "",
                        "grade": "b",
                        "icon_url": "https://static.openfoodfacts.org/images/attributes/dist/nutriscore--new-en.svg",
                        "id": "nutriscore",
                        "match": 73.6666666666667,
                        "name": "Nutri-Score",
                        "panel_id": "nutriscore_2023",
                        "status": "known",
                        "title": "Nutri-Score "
                    },

@stephanegigandet
Copy link
Contributor

@monsieurtanuki Thanks a lot for the example, it helped a lot. It is an obsolete products, and I forgot to compute the new Nutri-Score for those. I'll do it, and I made a PR to fix the attribute: openfoodfacts/openfoodfacts-server#10915

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

Successfully merging a pull request may close this issue.

2 participants