Skip to content

request_too_large

The body is larger than the endpoint’s limit (1 MiB unless the endpoint says otherwise), or the endpoint takes no body and the request sent one.

HTTP 413 · invalid_request_error · not retryable

The body is larger than the endpoint’s limit (1 MiB unless the endpoint says otherwise), or the endpoint takes no body and the request sent one. For the second case the message reads “This endpoint doesn’t take a request body. Send the request without one.”

Send a smaller body, or none. For large data, split it across requests.

HTTP 413 · request_too_large
{
"error": {
"type": "invalid_request_error",
"code": "request_too_large",
"message": "The request body is larger than 1 MiB. Send a smaller body.",
"param": null,
"request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d",
"doc_url": "https://docs.deedglass.com/errors/request_too_large"
}
}

The message is for a person and can get more exact over time: branch on type and code, never on the message.

SDK Raised as
TypeScript (@deedglass/sdk) InvalidRequestError with code === "request_too_large"
Python (deedglass) deedglass.InvalidRequestError with .code == "request_too_large"