Errors

Every error Pod answers, what it means, and when to send the call again

Every refusal has the same body, with the error's name in error. Branch on the name, never on the message: names are stable, and messages change.

409
{
  "error": "quota_exceeded",
  "message": "This project holds its most sandboxes awake.",
  "request_id": "req_3ahrz6dmv29gqy5ckt18fp",
  "limit": "max_awake"
}
FieldWhat it is
errorThe name, from the list below.
messageFor people. It can change.
request_idThe same as the Request-Id header. Give it to support.
retry_after_sWith rate_limited and no_capacity: wait this long before sending the call again.
fieldWith invalid: the field that is wrong.
limitWith quota_exceeded: max_sandboxes or max_awake.
cell_endpointWith in_other_cell: where to send the call.

Sending a call again

Every call that changes something takes an Idempotency-Key header. Send the same key with the same request and Pod never acts twice. Pod keeps the answer for 24 hours when it was a success or a refusal that may not be sent again, and answers it again for the same key. After any other refusal the same key runs the call again. Both SDKs and mpod send a key with every such call and retry only where the rule below allows it.

RuleWhat to do
neverDo not send it again as it is. Fix the request first.
nowSend it again at once, with the same idempotency key.
after_retry_afterWait the retry_after_s the answer gives (also the Retry-After header), then send it again.
same_key_onlyThe outcome is unknown. Send it again only with the same idempotency key, which never acts twice.
after_state_changeSend it again once the object's state allows it; the message names the state.
once_freedSend it again once something the limit counts is freed: a sandbox deleted, or put to sleep.
at_cell_endpointSend it to the address in cell_endpoint, where the object lives.

All errors

invalid

Malformed request, unknown size or field, bad value. field names it.

HTTPSend againSame key answers it again
400Do not send it again as it is. Fix the request first.Yes, for 24 hours

invalid_user

Pod Console's machine user breaks its rules.

HTTPSend againSame key answers it again
400Do not send it again as it is. Fix the request first.Yes, for 24 hours

system_not_offered

The system or class is not offered in this cell yet.

HTTPSend againSame key answers it again
400Do not send it again as it is. Fix the request first.Yes, for 24 hours

payload_too_large

Body or upload over its limit.

HTTPSend againSame key answers it again
413Do not send it again as it is. Fix the request first.Yes, for 24 hours

unauthorized

No credential, or one that is not valid.

HTTPSend againSame key answers it again
401Do not send it again as it is. Fix the request first.Yes, for 24 hours

forbidden

A valid credential without the scope or project, or a sandbox key used from outside its own slot.

HTTPSend againSame key answers it again
403Do not send it again as it is. Fix the request first.Yes, for 24 hours

person_required

A people-only action, or a fresh second factor is needed. No API key can do it.

HTTPSend againSame key answers it again
403Do not send it again as it is. Fix the request first.Yes, for 24 hours

ci_size_above_default

Pod CI: a job from someone who is not trusted on the repository (a stranger's pull request from a fork, or a job whose facts are missing) asked for a runner above the default size. The job runs at the default size at most; nothing is billed for the refused runner.

HTTPSend againSame key answers it again
403Do not send it again as it is. Fix the request first.Yes, for 24 hours

ci_untrusted_on_warm

Pod CI: a job from someone who is not trusted on the repository landed on a runner restored from the repository's warm snapshot, which only the repository's own jobs may use. It is stopped before its first step and nothing is billed; run it again on a plain runner.

HTTPSend againSame key answers it again
403Do not send it again as it is. Fix the request first.Yes, for 24 hours

ci_shards_refused

Pod CI: a job's ask for copies of itself (fork to shard) is refused: more copies than the plan allows, copies that would pass the core limit, an account not in good standing, or a stranger's job on a public repository.

HTTPSend againSame key answers it again
403Do not send it again as it is. Fix the request first.Yes, for 24 hours

ci_account_not_servable

Pod CI cannot serve this GitHub account: a personal account, an organization without runner groups, or a suspended installation. Connecting it is refused until that changes.

HTTPSend againSame key answers it again
422Do not send it again as it is. Fix the request first.Yes, for 24 hours

not_found

No such object that this key may see.

HTTPSend againSame key answers it again
404Do not send it again as it is. Fix the request first.Yes, for 24 hours

in_other_cell

The object lives in another cell; cell_endpoint names it.

HTTPSend againSame key answers it again
421Send it to the address in cell_endpoint, where the object lives.No: it runs again

conflict

The object's state forbids the call; the message names the state.

HTTPSend againSame key answers it again
409Send it again once the object's state allows it; the message names the state.No: it runs again

idempotency_key_reused

The same key came with a different request.

HTTPSend againSame key answers it again
409Do not send it again as it is. Fix the request first.Yes, for 24 hours

saves_refused

The sandbox was created with the flag that refuses snapshots, share links and forks.

HTTPSend againSame key answers it again
409Do not send it again as it is. Fix the request first.Yes, for 24 hours

not_ready

The sandbox is still creating or waking and the call waited until its deadline.

HTTPSend againSame key answers it again
409Send it again at once, with the same idempotency key.No: it runs again

quota_exceeded

A count limit: sandboxes held (max_sandboxes) or sandboxes awake (max_awake), per organization, project or end user; a batch larger than the trust tier's swarm cap (max_swarm); a batch larger than a minute's creates that the swarm cap does not allow (creates_per_minute); or a network limit (max_domains, max_static_addresses, max_private_ranges, max_proxies, max_leases). limit names it.

HTTPSend againSame key answers it again
409Send it again once something the limit counts is freed: a sandbox deleted, or put to sleep.No: it runs again

plan_required

The plan does not include this size, class or feature, or the feature needs a verified account.

HTTPSend againSame key answers it again
402Do not send it again as it is. Fix the request first.Yes, for 24 hours

account_restricted

The account is past due or suspended (limit: standing), its home-connection addresses are held (limit: home_address_hold), or the end user is suspended or deleted (limit: end_user). Creates and wakes are refused; running sandboxes are not touched by this error.

HTTPSend againSame key answers it again
402Do not send it again as it is. Fix the request first.Yes, for 24 hours

spend_cap_reached

A spend cap of the organization, the project or the end user is reached for this month. limit is spend_cap. Creates and wakes are refused; with the cap's on_reach at sleep, what is awake is put to sleep.

HTTPSend againSame key answers it again
402Send it again once the object's state allows it; the message names the state.No: it runs again

rate_limited

Too many calls for this key or account. limit names the rate-limit policy that ran out (calls_per_minute or creates_per_minute), which the RateLimit-Policy and RateLimit headers describe.

HTTPSend againSame key answers it again
429Wait the retry_after_s the answer gives (also the Retry-After header), then send it again.No: it runs again

no_capacity

No server has room for a create. A wake queues instead of failing. On a create with hold_server, server_held says whether a server is now held for it: retry with the same idempotency key.

HTTPSend againSame key answers it again
503Wait the retry_after_s the answer gives (also the Retry-After header), then send it again.No: it runs again

not_supported

This system or class does not do this: fork on a TEE sandbox, memory sleep on macOS.

HTTPSend againSame key answers it again
501Do not send it again as it is. Fix the request first.Yes, for 24 hours

guest_unavailable

The guest agent did not take the call. The command did not start.

HTTPSend againSame key answers it again
503Send it again at once, with the same idempotency key.No: it runs again

guest_unresponsive

The guest agent stopped answering after the call started. The outcome is unknown.

HTTPSend againSame key answers it again
504The outcome is unknown. Send it again only with the same idempotency key, which never acts twice.No: it runs again

deadline_exceeded

A deadline passed inside Pod. The outcome is unknown.

HTTPSend againSame key answers it again
504The outcome is unknown. Send it again only with the same idempotency key, which never acts twice.No: it runs again

unavailable

A Pod service is down, restarting or draining.

HTTPSend againSame key answers it again
503Send it again at once, with the same idempotency key.No: it runs again

port_closed

Nothing in the sandbox listens on the port asked for. The tunnel answers it before the upgrade; a port URL shows it as a page.

HTTPSend againSame key answers it again
502Send it again once the object's state allows it; the message names the state.No: it runs again

upstream

A provider Pod depends on failed: object storage, the key manager, identity.

HTTPSend againSame key answers it again
502Send it again at once, with the same idempotency key.No: it runs again

internal

A fault in Pod.

HTTPSend againSame key answers it again
500The outcome is unknown. Send it again only with the same idempotency key, which never acts twice.No: it runs again

ci_repository_removed

Pod CI: the repository was removed from the GitHub App's installation, or deleted on GitHub, so no runner starts for its queued jobs until it is added again.

HTTPSend againSame key answers it again
422Send it again once the object's state allows it; the message names the state.No: it runs again

ci_installation_suspended

Pod CI: GitHub suspended the App's installation, so no runner starts for its repositories' queued jobs until it is unsuspended.

HTTPSend againSame key answers it again
422Send it again once the object's state allows it; the message names the state.No: it runs again

ci_customer_gone

Pod CI: the GitHub App was uninstalled or the Pod organization closed, so Pod CI no longer serves this customer and its queued jobs never get a runner.

HTTPSend againSame key answers it again
422Do not send it again as it is. Fix the request first.Yes, for 24 hours