Thrown when the processed payload exceeds the midddleware's size limits
Description
This error is triggered when the payload is longer than the expected
message size, in order to prevent a DoS attack.
Since the API documentation states that the upper bound is 3mb, this
is the suggested value to throw the error, but it may vary from
middleware to middleware.
Remarks
This error is triggered on the limit set by the middleware.
However, your library or service may trigger an error on a lower limit.
In such cases, refer to their documentations to increase the payload
limits if needed.
Thrown when the processed payload exceeds the midddleware's size limits
Description
This error is triggered when the payload is longer than the expected message size, in order to prevent a DoS attack.
Since the API documentation states that the upper bound is 3mb, this is the suggested value to throw the error, but it may vary from middleware to middleware.
Remarks
This error is triggered on the limit set by the middleware. However, your library or service may trigger an error on a lower limit. In such cases, refer to their documentations to increase the payload limits if needed.
See
https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/overview#payload-size