Nothing on this page is typed by hand: the problem types come from the API contract, the limits from the service’s
configuration, contract and code, and the SDK behaviour from the SDKs. When one of them changes, this page changes
with the next build.
Every error is an RFC 9457 problem document with the content type application/problem+json. Branch on type, or
on its last segment, the slug; the slug is stable. title and detail are for people.
"detail": "Rate limit exceeded, retry after 12 seconds"
}
In the SDKs every failure is a VivariumError with status, type, title, detail, instance,
errors (the field errors of a validation failure) and code, the slug.
“Safe to repeat” means reads, deletes, file writes, and requests that carry an Idempotency-Key, which the SDKs send
on every sandbox create. A command is retried only on 429, 502 and 503, the answers that mean the request was not
processed. The SDKs retry up to three times by default, and wait at most 60 seconds for a Retry-After; a longer
wait comes back to you as the error.
When no HTTP answer arrives, or an operation the SDK waits for does not end the way it waited for, the SDKs raise the
same error class with status 0 and one of these codes:
Code
Meaning
SDK retries
network-error
The request got no answer: the connection or TLS failed, or DNS did not resolve.
Yes, when the request is safe to repeat
timeout
No answer within the client's timeout, or a wait for a sandbox, a snapshot or an export gave up before it settled.
No
operation-failed
A sandbox did not start, or a snapshot or an audit export ended in failed instead of ready.
No
stream-error
A streamed command's output broke off, or ended with an error event, before the exit event.
No
A command that runs past its own timeout is not an error: the result has timedOut (timed_out in Python) set, and
the sandbox keeps running. A non-zero exit code is not an error either.
A command’s output is cut at the output limit below and the result says truncated. Write large output to a file
under /work and read what you need.
Requests to an exposed port do not count as activity. A sandbox that only serves a port is destroyed at its idle
timeout unless you call keepalive.
File uploads pass through the API and are limited in size. Larger inputs are better fetched from inside the sandbox,
if its egress policy allows the source.