Payload too large
HTTP 413, problem type payload-too-large.
A request or a file is larger than the API accepts: a file upload over 50 MiB, a JSON body over 256 KiB, or a download larger than the sandbox's disk.
Common causes
- Writing a file larger than 50 MiB through PUT /v1/sandboxes/{id}/files.
- Sending a JSON body larger than 256 KiB, for example a very long command.
- Downloading a file whose size is larger than the sandbox's disk, which only a sparse file can be.
What to do
- Split the file, or compress it.
- Or fetch it from inside the sandbox with a command, if its egress policy allows the source.
- For a very long command, write it to a file first and run the file.
Retrying
Retrying the same request will fail the same way.
Example response
The body is an RFC 9457 problem document with the content type application/problem+json.
{ "type": "https://docs.wardcase.com/errors/payload-too-large", "title": "Payload too large", "status": 413, "detail": "The file is larger than 50 MiB"}