WhatsApp-Business-API-Setup-Scripts icon indicating copy to clipboard operation
WhatsApp-Business-API-Setup-Scripts copied to clipboard

Not able to send WhatsApp message with PDF - WhatsApp API Media Upload Failing with 499 & 500 Errors

Open dhirajdalvipixelotech opened this issue 8 months ago • 1 comments
trafficstars

Since March 5, 2025, we have been experiencing failures in sending WhatsApp template messages with a document attachment using the WhatsApp Business API. Previously, the same requests were processed successfully.

Observed Issues:

Response shows HTTP 500 Internal Server Error while trying to download media.

Image

Server Logs: Show 499 errors, meaning "the client closed the request before the server responded." Pattern: If we send 3 requests, the 1st and 2nd fail, but the 3rd one succeeds.

Error Response:

{
  "type": "validation_error",
  "errors": [
    {
      "code": "invalid",
      "attr": "details",
      "detail": "Downloading media from weblink failed with http code 500, status message Internal Server Error"
    }
  ],
  "success": false
}

Similar Question raised in Facebook developers community (Please refer this link for more details): https://developers.facebook.com/community/threads/1198947668528622/

Troubleshooting Done:

✅ Checked access logs, which show 499 errors, meaning "client shut off in the middle of processing the request." ✅ Tried resending requests, and observed that only some succeed while others fail.

Expectations:

  • WhatsApp Messages to be sent with the pdf files in it.

dhirajdalvipixelotech avatar Mar 18 '25 09:03 dhirajdalvipixelotech