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

open beauty facts server doesn't return the ingredient list #5760

Open
teolemon opened this issue Oct 27, 2024 · 6 comments
Open

open beauty facts server doesn't return the ingredient list #5760

teolemon opened this issue Oct 27, 2024 · 6 comments
Labels
ingredients 🧴 Open Beauty Facts Please see this proposal: https://github.com/openfoodfacts/smooth-app/discussions/1378

Comments

@teolemon
Copy link
Member

What

  • open beauty facts server doesn't return the ingredient list
    Screenshot_20241027-203223.png
@teolemon teolemon added 🧴 Open Beauty Facts Please see this proposal: https://github.com/openfoodfacts/smooth-app/discussions/1378 ingredients labels Oct 27, 2024
@github-project-automation github-project-automation bot moved this to To Discuss & Validate in 🧴 Open Beauty Facts Oct 27, 2024
@monsieurtanuki monsieurtanuki self-assigned this Oct 28, 2024
@monsieurtanuki
Copy link
Contributor

open beauty facts server doesn't return the ingredient list

@teolemon Yes it does, at least for 3760209541809 in prod/fr_fr.
Which barcode / which env / which language / which country?

Image

@teolemon
Copy link
Member Author

A product where I had just added the ingredient list (so possibly was still in the queue).
Still not working this morning, yet the ingredients are on the server. Latest build.
https://world.openbeautyfacts.org/product/5744003233946/boob-tape-remover
https://world.openbeautyfacts.org/cgi/product.pl?type=edit&code=5744003233946

@teolemon
Copy link
Member Author

It might have to do with the main language, which is English ?

@monsieurtanuki
Copy link
Contributor

I guess the problem is with KP only.

Image

@monsieurtanuki
Copy link
Contributor

@teolemon In KnowledgePanelTextCard we use the html element, that is empty in "your" case and is populated in "my" case.
Therefore the problem comes from the KP not being correctly populated by the server.

your case:
https://world.openbeautyfacts.org/api/v3/product/5744003233946.json?fields=knowledge_panels

            "ingredients": {
                "elements": [
                    {
                        "element_type": "text",
                        "text_element": {
                            "edit_field_id": "ingredients_text_en",
                            "edit_field_type": "ingredients_text",
                            "edit_field_value": "Aqua, Glycerin, Niacinamide, Trehalose, Sodium Hyaluronate, Sodium Acetylated Hyaluronate, Sodium Hyaluronate Crosspolymer, Hydrolyzed Sodium Hyaluronate, Centella Asiatica Extract, Polygonum Cuspidatum Root Extract, Scutellaria Baicalensis Root Extract, Camellia Sinensis Leaf Extract, Glycyrrhiza Glabra Root Extract, Chamomilla Recutita Flower Extract, Rosmarinus Officinalis Leaf Extract, Ethylhexylglycerin, 1,2-Hexanediol, Hydroxyacetophenone, Butylene Glycol, Pentylene Glycol.",
                            "html": "",
                            "language": "English",
                            "lc": "en"
                        }
                    }
                ],

my case:
https://world.openbeautyfacts.org/api/v3/product/3760209541809.json?fields=knowledge_panels

            "ingredients": {
                "elements": [
                    {
                        "element_type": "text",
                        "text_element": {
                            "edit_field_id": "ingredients_text_fr",
                            "edit_field_type": "ingredients_text",
                            "edit_field_value": "AQUA, HELIANTHUS ANNUUS (SUNFLOWER) SEED OIL, CAPRYLIC/CI - PRC TRIGLYCERIDE, GLYCERYL STEARATE, CETEARETH-20, PROPÝLENE GLYCOL CETEARYL ALCOHOL, DIMETHICONE, GLYCERIN, ALOE BARBADENSIS LEAF JUICE POTASSIUM SORBATE, CITRIC ACID, ALLANTOIN, CALENDULĂ OFFICINALIS FLOWER EXTRACT, TOCÒPHERYL ACETATE, DAUCUS CAROTA SATIVA OIL, CETEARETH-12, CARBOMER, PENTAERYTHRITYL TETRA-DI-T-BUTYL HYDROXYHYDROCINNA - MATE, PENTYLENE GLYCOL, DILAURYL THIODIPROPIONATE, DEHYDROACETIC ACID, SODIÚM BENZOATE, TRIETHANOLAMINE, PARFUM, CAPRYLYL GLYCOL. Laboratoires Dermosun CASTRES/SERIGNAN ZA de Beauregard-81570 Sémalens www.dermosun.fr 12 M 200ml FABRICATION FRANÇAISE EMBALLAGE RECYCLABLE 3 "760209 54 1809",
                            "html": "AQUA, HELIANTHUS ANNUUS (SUNFLOWER) SEED OIL, CAPRYLIC/CI - PRC TRIGLYCERIDE, GLYCERYL STEARATE, CETEARETH-20, PROPÝLENE GLYCOL CETEARYL ALCOHOL, DIMETHICONE, GLYCERIN, ALOE BARBADENSIS LEAF JUICE POTASSIUM SORBATE, CITRIC ACID, ALLANTOIN, CALENDULĂ OFFICINALIS FLOWER EXTRACT, TOCÒPHERYL ACETATE, DAUCUS CAROTA SATIVA OIL, CETEARETH-12, CARBOMER, PENTAERYTHRITYL TETRA-DI-T-BUTYL HYDROXYHYDROCINNA - MATE, PENTYLENE GLYCOL, DILAURYL THIODIPROPIONATE, DEHYDROACETIC ACID, SODIÚM BENZOATE, TRIETHANOLAMINE, PARFUM, CAPRYLYL GLYCOL. Laboratoires Dermosun CASTRES/SERIGNAN ZA de Beauregard-81570 Sémalens www.dermosun.fr 12 M 200ml FABRICATION FRANÇAISE EMBALLAGE RECYCLABLE 3 \"760209 54 1809",
                            "language": "French",
                            "lc": "fr"
                        }
                    }
                ],

@monsieurtanuki monsieurtanuki removed their assignment Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingredients 🧴 Open Beauty Facts Please see this proposal: https://github.com/openfoodfacts/smooth-app/discussions/1378
Projects
Status: 💬 To discuss and validate
Status: To Discuss & Validate
Development

No branches or pull requests

2 participants