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.
{
"error": "quota_exceeded",
"message": "This project holds its most sandboxes awake.",
"request_id": "req_3ahrz6dmv29gqy5ckt18fp",
"limit": "max_awake"
}| Field | What it is |
|---|---|
error | The name, from the list below. |
message | For people. It can change. |
request_id | The same as the Request-Id header. Give it to support. |
retry_after_s | With rate_limited and no_capacity: wait this long before sending the call again. |
field | With invalid: the field that is wrong. |
limit | With quota_exceeded: max_sandboxes or max_awake. |
cell_endpoint | With 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.
| Rule | What to do |
|---|---|
never | Do not send it again as it is. Fix the request first. |
now | Send it again at once, with the same idempotency key. |
after_retry_after | Wait the retry_after_s the answer gives (also the Retry-After header), then send it again. |
same_key_only | The outcome is unknown. Send it again only with the same idempotency key, which never acts twice. |
after_state_change | Send it again once the object's state allows it; the message names the state. |
once_freed | Send it again once something the limit counts is freed: a sandbox deleted, or put to sleep. |
at_cell_endpoint | Send it to the address in cell_endpoint, where the object lives. |
All errors
| Name | HTTP | Retried by the SDKs |
|---|---|---|
invalid | 400 | No |
invalid_user | 400 | No |
system_not_offered | 400 | No |
payload_too_large | 413 | No |
unauthorized | 401 | No |
forbidden | 403 | No |
person_required | 403 | No |
ci_size_above_default | 403 | No |
ci_untrusted_on_warm | 403 | No |
ci_shards_refused | 403 | No |
ci_account_not_servable | 422 | No |
not_found | 404 | No |
in_other_cell | 421 | No |
conflict | 409 | No |
idempotency_key_reused | 409 | No |
saves_refused | 409 | No |
not_ready | 409 | Yes |
quota_exceeded | 409 | No |
plan_required | 402 | No |
account_restricted | 402 | No |
spend_cap_reached | 402 | No |
rate_limited | 429 | Yes |
no_capacity | 503 | Yes |
not_supported | 501 | No |
guest_unavailable | 503 | Yes |
guest_unresponsive | 504 | Yes |
deadline_exceeded | 504 | Yes |
unavailable | 503 | Yes |
port_closed | 502 | No |
upstream | 502 | Yes |
internal | 500 | Yes |
ci_repository_removed | 422 | No |
ci_installation_suspended | 422 | No |
ci_customer_gone | 422 | No |
invalid
Malformed request, unknown size or field, bad value. field names it.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 400 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 400 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 400 | Do not send it again as it is. Fix the request first. | Yes, for 24 hours |
payload_too_large
Body or upload over its limit.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 413 | Do not send it again as it is. Fix the request first. | Yes, for 24 hours |
unauthorized
No credential, or one that is not valid.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 401 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 403 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 403 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 403 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 403 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 403 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 422 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 404 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 421 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 409 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 409 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 409 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 409 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 409 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 402 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 402 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 402 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 429 | Wait 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 503 | Wait 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 501 | Do 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 503 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 504 | The 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 504 | The 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 503 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 502 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 502 | Send it again at once, with the same idempotency key. | No: it runs again |
internal
A fault in Pod.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 500 | The 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 422 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 422 | Send 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.
| HTTP | Send again | Same key answers it again |
|---|---|---|
| 422 | Do not send it again as it is. Fix the request first. | Yes, for 24 hours |