whatsapp-api-js - v6.3.0
    Preparing search index...

    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)

    Index
    httpStatus: number

    The HTTP status code of the error

    • get docs(): string

      Returns string