Request Too Large
Code
code:request_too_largestatus:413url:https://developers.glean.com/errors/request-too-large
What It Means
The request body is larger than the API accepts.
Common Causes
- A batch contains too many items.
- A field contains unexpectedly large text or metadata.
- The client is sending unnecessary data.
How To Resolve
Client Actions
- Reduce the payload size.
- Split large batches into smaller requests.
- Remove fields the endpoint does not require.
Retry Guidance
Retry only after reducing the request size.
Example Response
{
"type": "https://developers.glean.com/errors/request-too-large",
"title": "Request Too Large",
"status": 413,
"detail": "Human-readable explanation specific to this occurrence.",
"code": "request_too_large",
"documentation_url": "https://developers.glean.com/errors/request-too-large",
"request_id": "req_7f8a9b0c1d2e"
}