Class WhatsAppAPIMissingRawBodyError

Thrown when the request body is missing

In order to validate the request, the raw body (original string) of the request is required to do the signature verification.

If you are using a middleware, make sure you aren't consuming the request body before the API can access it. Otherwise, feel free to open an issue on GitHub.

await whatsapp.post(JSON.parse(req.body), req.body, req.headers.get("x-hub-signature-256"));

Hierarchy (View Summary)

Properties

Accessors

Methods

Properties

httpStatus: number

The HTTP status code of the error

Accessors

  • get docs(): string
  • Returns string

Methods