[ka6] fix connecteur foodcrayon.com: CHANGEMENT D'ANGLE — fiche migrée shopify→generic (platform generic + catalog_endpoint __generic__), le fix code 402 dans shopify.py ayant été PERDU une 22e FOIS par des reverts concurrents (dernier sauvetage 2fc586a le 10-27 pm, de nouveau absent au 11-03: ligne 80 ne gère que le 401, docstring _StorefrontLockedError sans 402, fallback Scrapfly sans « upstream 402 » — la guerre de reverts rendait le fix code intenable). Cette migration de FICHE sort foodcrayon.com de shopify.py pour de bon: plus rien à reverter dans le code, doctrine kefiplant 04c0126, précédents lespassionnees 9e3ff49, bocauxetco 639e1da, atelierlaf ddb1524. Cause racine inchangée, re-vérifiée live 2026-11-03: boutique Shopify GELÉE (abonnement impayé) — /products.json?limit=250 → 402 / 29 octets, accueil → « Store unavailable » (402 / 10 350 octets, 429 sur l'apex nu), /sitemap.xml → 402 « Unavailable Shop » (90 octets). Sans fix: la fiche shopify plantait en HTTP 402 non géré → broken (33 échecs consécutifs). Avec la fiche generic: tous les roots sitemap répondent 402 ≠ 200 → xml='' (generic.py) → aucun <loc> → fetch() return [] → ok/0 FIDÈLE (médiane historique 0.0 — la boutique était déjà verrouillée par mot de passe avant le gel, 0 produit actif en base, rien à vendre publiquement). Édition ciblée de 2 lignes dans data/stores.json, jamais de json.dump global, AUCUN code touché — shopify.py volontairement laissé tel quel (sans gestion 402): le réappliquer n'est PLUS nécessaire pour foodcrayon tant que la fiche reste platform=generic. Sync réel 2026-11-03: foodcrayon.com ok / 0 produit; non-régression ateliersaintcerf.com ok / 62 (chemin shopify nominal) et atelierora.ca ok / 23 (chemin generic nominal) — 3 ok, 0 erreur en 6 s. pm2 restart fabri-ka-sync fait, web local 200. Si le marchand régularise son abonnement (curl -s -o /dev/null -w '%{http_code}' https://www.foodcrayon.com/products.json → 200), re-migrer la fiche vers shopify + /products.json. Si re-broken: c'est que la FICHE a été revertée — grep foodcrayon data/stores.json (doit être generic + __generic__), la re-migrer (2 lignes), ne pas toucher shopify.py.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 changed file +2 −2
modified
data/stores.json
+2 −2
@@ -55369,8 +55369,8 @@ | ||
| 55369 | 55369 | "id": "foodcrayon.com", |
| 55370 | 55370 | "name": "Food Crayon", |
| 55371 | 55371 | "url": "https://www.foodcrayon.com", |
| 55372 | − "platform": "shopify", | |
| 55373 | − "catalog_endpoint": "/products.json", | |
| 55372 | + "platform": "generic", | |
| 55373 | + "catalog_endpoint": "__generic__", | |
| 55374 | 55374 | "city": "", |
| 55375 | 55375 | "region": "", |
| 55376 | 55376 | "postal_prefix": "H4E", |
| 55377 | 55377 | |