This commit is contained in:
Lizandro Guarnizo
2026-02-21 11:45:32 -05:00
parent e00c96c614
commit 51f1b04293
3 changed files with 36 additions and 13 deletions
+5 -1
View File
@@ -497,7 +497,10 @@ class WhatsAppService
'file' => new CURLFile($filePath, $mimeType),
'type' => $mimeType,
],
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $this->token],
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $this->token,
'Expect:', // deshabilitar 100-Continue: evita errno 55 (Send failure) con Meta
],
CURLOPT_TIMEOUT => 300,
CURLOPT_CONNECTTIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
@@ -624,6 +627,7 @@ class WhatsAppService
'-w', '%{http_code}',
'-X', 'POST',
'-H', 'Authorization: Bearer ' . $this->token,
'-H', 'Expect:', // deshabilitar 100-Continue: evita errno 55 con Meta API
'-F', 'messaging_product=whatsapp',
'-F', 'type=' . $mimeType,
'-F', 'file=@' . $filePath . ';type=' . $mimeType,