Skip to content

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

@dhirajdalvipixelotech

Description

@dhirajdalvipixelotech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions