Debug: loguear detalle del error 400 de Evolution al fallar WA
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user