openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
826 stars 277 forks source link

Search is failing on .dev (is it because we don't have all 4 projects on .dev ?) #5680

Open teolemon opened 1 week ago

teolemon commented 1 week ago

What

teolemon commented 1 week ago

Screenshot_20241009-143938.png

monsieurtanuki commented 1 week ago
  • Search is failing on .dev (is it because we don't have all 4 projects on .dev ?)

@teolemon For keyword searches we use the selected product type (in your case, "food"). We use the 4 servers for single barcode searches.

monsieurtanuki commented 1 week ago

@teolemon Looks like a server issue, cf. #5686 ClientException: ClientException with SocketException: Failed host lookup: 'world.openbeautyfacts.dev' (OS Error: No address associated with hostname, errno = 7), uri=https://world.openbeautyfacts.dev/api/v3/product/00532904221219/?lc=fr&tags_lc=fr&cc=fr&fields=product_name%2Cproduct_name_languages%2Cbrands%2Ccode%2Cnutrition_grade_fr%2Cimage_small_url%2Cimage_front_url%2Cimage_ingredients_url%2Cimage_nutrition_url%2Cimage_packaging_url%2Cimages%2Cselected_images%2Cquantity%2Cserving_size%2Cstores%2Cproduct_quantity%2Cpackaging%2Cpackagings%2Cpackagings_complete%2Cpackaging_tags%2Cpackaging_text_languages%2Cno_nutrition_data%2Cnutrition_data_per%2Cnutrition_data%2Cnutriments%2Cnutrient_levels%2Cnutriment_energy_unit%2Cadditives_tags%2Cingredients_analysis_tags%2Cingredients_text%2Cingredients_text_languages%2Clabels_tags%2Clabels_tags_fr%2Ccompared_to_category%2Ccategories_tags%2Ccategories_tags_fr%2Clang%2Cattribute_groups%2Cstates_tags%2Cecoscore_data%2Cecoscore_grade%2Cecoscore_score%2Cknowledge_panels%2Ccountries%2Ccountries_tags%2Ccountries_tags_fr%2Cemb_codes%2Corigins%2Clink%2Cobsolete%2Cowner_fields&app_name=Smoothie+-+OpenFoodFacts&app_version=4.16.0%2B1352&app_uuid=1f9d9687e44343b5&app_platform=android%2BAP41.240823.009&comment=search Image

monsieurtanuki commented 1 week ago

My bad, #5686 is about "beauty".

teolemon commented 1 week ago

This one does not exist, but food is failing as well.

monsieurtanuki commented 1 week ago

@teolemon @stephanegigandet That's just the way the server crashes with some product fields.

ok for barcode: https://world.openfoodfacts.dev/cgi/search.pl?lc=fr&tags_lc=fr&cc=fr&fields=code&search_terms=sauce&json=1&api_version=3

KO for attribute_groups: https://world.openfoodfacts.dev/cgi/search.pl?lc=fr&tags_lc=fr&cc=fr&fields=attribute_groups&search_terms=sauce&json=1&api_version=3

KO for ecoscore_data: https://world.openfoodfacts.dev/cgi/search.pl?lc=fr&tags_lc=fr&cc=fr&fields=ecoscore_data&search_terms=sauce&json=1&api_version=3

KO for knowledge_panels: https://world.openfoodfacts.dev/cgi/search.pl?lc=fr&tags_lc=fr&cc=fr&fields=knowledge_panels&search_terms=sauce&json=1&api_version=3

They might not be the only problematic fields.