forked from FroSteel/Planification
v5.0.7 — Correctifs
This commit is contained in:
@@ -140,6 +140,12 @@ async function fetchFicheHtml(origin, phpsessid, formLink) {
|
||||
}
|
||||
const html = await r.text();
|
||||
console.log("[bg] fiche status =", r.status, "| taille =", html.length);
|
||||
// v5.0.7 : si la réponse est anormalement petite (< 500 octets), c'est
|
||||
// probablement une redirection ou une réponse d'erreur courte — on logge
|
||||
// le contenu pour diagnostiquer.
|
||||
if (html.length < 500) {
|
||||
console.warn("[bg] ⚠ fiche très courte, contenu =", JSON.stringify(html));
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user