Debug: loguear detalle del error 400 de Evolution al fallar WA

This commit is contained in:
2026-09-13 20:03:48 +00:00
parent 7f329bb310
commit 68aa650d63

View File

@@ -3386,7 +3386,8 @@ async function sendWhatsAppAuto(phone, message, instanceName, useDelay = false)
}); });
if (!response.ok) { if (!response.ok) {
console.error("❌ Fallo enviando WhatsApp. Estado Evolution:", response.status); const errText = await response.text().catch(() => "");
console.error("❌ Fallo enviando WhatsApp. Estado Evolution:", response.status, "Tel:", phone, "Detalle:", errText.substring(0, 300));
return false; return false;
} }
return true; return true;