quiet robotBook a call

Sandboxes

Errors

The error format and every error code the Sandboxes API returns.

View as Markdown

Sandboxes is in early access. It is free to try, some parts are still in testing, and details may change. Sign up free

Errors come back as JSON with an HTTP status, a stable code you can match on, and a message written for people:

JSON
{ "error": { "code": "plan_limit", "message": "The Free plan allows up to 2 vCPUs" } }

Messages never include details of the machines underneath. When something fails on our side, the message names the sandbox or snapshot id to send to support.

StatuscodeWhat happened
400invalid_requestA field is missing or out of range. The message says which.
400no_organizationA dashboard session with no organization selected.
401unauthorizedNo API key, or it's wrong or revoked.
402usage_limitThe Free plan's included usage for this month is used up.
403forbiddenAn API key tried to approve or deny, or a person outside the organization.
403plan_limitYour plan doesn't allow this size, class, session length, open internet access, snapshot count or reserved machine.
404not_foundNo such sandbox, execution, snapshot or reservation in your organization.
404file_errorThe file doesn't exist.
409not_runningThe sandbox isn't running (it's starting, paused or stopped).
409not_readyThe sandbox is still starting.
409not_pausedResume on a sandbox that isn't paused.
409not_pendingApprove or deny on a command that isn't waiting.
409busyPause while a command is still running.
409paused_storage_fullYour paused sandboxes already hold the disk your plan allows (10 GB on Free, 50 GB on Team). Resume or delete one, then pause again.
409conflictThe sandbox changed state during the call. Try again.
409snapshot_not_readyCreate from a snapshot that isn't ready.
409reservation_in_useThe reserved machine is already running a sandbox.
413too_largeThe snapshot is bigger than your plan allows.
429limit_reachedToo many sandboxes running at once.
502start_failedThe sandbox failed to start. Try again.
502resume_failedThe sandbox couldn't be resumed.
502pause_failedThe sandbox couldn't be paused. It's still running.
502restore_failedThe new sandbox couldn't load the snapshot.
502snapshot_failedThe snapshot couldn't be saved. Try again.
502agent_errorThe sandbox didn't answer as expected.
500internalSomething broke on our side.

A command that runs and exits with a non-zero code isn't an error: exec returns 200 with its exitCode. If the sandbox stops answering mid-command, the execution is marked failed with a plain explanation in stderr.