API errors
Every refusal code of the plane API with its sentence and remedy; the human twin of the OpenAPI document's PlaneError.
Generated from the SDK's own source (
apps/durablesdk/src/lib/api/refusals.ts) at build; edit there.
This page is the registry of every error the platform answers: the code, the HTTP status, the sentence and the remedy. It teaches one verb, durable-sdk explain <code>, which prints the same row offline, and one shape, PlaneError, which every refusal of the API carries.
{
"error": {
"code": "plane.app.slug_taken",
"message": "the slug my-app is taken",
"remedy": "choose another slug: durable-sdk apps create <slug>",
"docs": "https://durablesdk.com/docs/reference/api/errors#plane.app.slug_taken"
}
}This page is the human twin of components.schemas.PlaneError in /openapi.json: the four fields, nothing else. Every code is plane.<area>.<word>; a row's anchor is its id. The sentence's <part> is filled at the door; the CLI copy of the table (durable-sdk explain) is held equal to the platform's by a guard, so the two never disagree.
durable-sdk explain plane.deploy.check_failed
durable-sdk explain plane.deploy.check_failed --jsonA code is never a failure of the platform: it is a value the door answered, with the next action in its remedy. A 5xx with Retry-After is the one case to wait on.
plane.auth — the credential and the origin#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.auth.cookie_tossed |
400 | the request carries a session cookie twice | Clear the cookies for the product's domain and sign in again. |
plane.auth.key_unknown |
401 | the key is not one this platform minted | Run durable-sdk login, or mint a key on the dashboard. |
plane.auth.org_required |
403 | the session has no active organization | Choose an organization on the dashboard, then ask again. |
plane.auth.origin_refused |
403 | a session request needs a same-origin fetch, the X-Durable-Org header and a JSON body | Call the API from the dashboard, or with an API key as Authorization: Bearer. |
plane.auth.required |
401 | no credential: the request carries no key and no session | Run durable-sdk login, or set DURABLE_API_KEY to a key minted on the dashboard. |
plane.key — API keys#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.key.expired |
401 | this key expired on <date> |
Mint a new key on the dashboard, or run durable-sdk login again. |
plane.key.expires |
422 | expiresDays is 30, 90 or 365 | Choose 30, 90 or 365 days. |
plane.key.mint_by_person |
403 | a key never mints a key | Mint a key on the dashboard, or run durable-sdk login as a person. |
plane.key.name |
422 | a key's name is 1 to 64 characters | Name the key for what holds it (ci on github). |
plane.key.not_found |
404 | no key <id> under this organization |
Run durable-sdk keys list for the ids. |
plane.key.revoke_forbidden |
403 | key <id> was minted by someone else |
Ask an organization admin to revoke it. |
plane.key.revoked |
401 | this key was revoked on <date> |
Mint a new key on the dashboard. |
plane.key.scope |
422 | the scope <scope> is above yours (<have>) |
Ask for a scope at most your role's: read, deploy, or admin for an organization admin. |
plane.key.scope_short |
403 | the credential's scope <have> is short of <need> |
Use a key of scope <need> or above, or sign in with that role. |
plane.login — the device flow#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.login.code_unknown |
404 | no pending login carries the code <code> |
Type the code the CLI printed; five wrong codes in ten minutes expire your attempts. |
plane.login.codes_spent |
429 | five wrong codes in ten minutes | Wait ten minutes, then type the code the CLI printed. |
plane.login.consumed |
409 | the login's key was already taken | Log in again. |
plane.login.denied |
400 | the login was denied | Run durable-sdk login again and approve it on the page. |
plane.login.expired |
400 | the login expired | Run durable-sdk login again. |
plane.login.not_found |
404 | no login <id> for this poll secret |
Run durable-sdk login again. |
plane.login.pending |
200 | the login is pending | Keep polling every intervalSeconds. |
plane.login.scope |
422 | scope is read, deploy or admin | Pass --scope read, deploy or admin. |
plane.login.slow_down |
429 | polled early | Poll every intervalSeconds; the CLI backs off by itself. |
plane.cli — the CLI's own doors#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.cli.no_app |
400 | no app named: this directory is not linked to one (.durable-sdk/app.json) | Pass --app <slug>, or run durable-sdk apps link <slug> in the project's directory. |
plane.cli.plane_mismatch |
400 | the key is stored for <stored>, not <asked> |
Run durable-sdk login --plane <asked>, or drop --plane and DURABLE_PLANE_URL. |
plane.app — apps#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.app.failed |
409 | app <slug> failed to provision: <sentence> |
Run durable-sdk apps rm <slug> to free the slug, then create it again. |
plane.app.held |
409 | app <slug> is deleted and held until <until> |
Run durable-sdk apps restore <slug> to bring it back, or wait for the purge to free the slug. |
plane.app.not_found |
404 | no app <slug> under this organization |
Run durable-sdk apps list. |
plane.app.not_held |
409 | app <slug> is <status>, not held |
Restore only a deleted app within its hold days; a purged slug is free to create again. |
plane.app.provisioning |
409 | app <slug> is still provisioning |
Wait for active: durable-sdk apps list. |
plane.app.region |
422 | <region> is not a region |
Run GET /regions (durable-sdk apps create --region) for the words. |
plane.app.slug_invalid |
422 | <slug> is not a slug: a-z, 0-9 and -, 3 to 40 characters, a letter first, no -- and no trailing - |
Choose a slug of that shape. |
plane.app.slug_reserved |
422 | <slug> is reserved |
Choose another slug. |
plane.app.slug_reserved_shape |
422 | <slug> has a derived hostname's shape (-git- inside, or -staging at the end) |
Choose a slug without -git- inside and not ending in -staging. |
plane.app.slug_taken |
409 | the slug <slug> is taken |
Choose another slug; a deleted app holds its slug until its purge. |
plane.environment — environments#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.environment.not_found |
404 | no environment <name> on <slug> |
Run durable-sdk environments list. |
plane.environment.production |
422 | production is not deleted | Delete a preview by its name; production goes with the app (durable-sdk apps rm). |
plane.upload — the upload in parts#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.upload.bad_entry |
422 | <path> is not a regular file or a directory, or escapes the root |
Pack regular files under one root. |
plane.upload.completed |
409 | upload <id> is complete: no part is accepted |
Create the deployment from it, or open a new upload. |
plane.upload.expired |
410 | upload <id> expired after an hour |
Open a new upload. |
plane.upload.file_too_large |
422 | <path> is over 10 MB |
Exclude it (an ignore file) or ship it elsewhere. |
plane.upload.incomplete |
409 | parts <missing> are missing |
Send the missing parts, then complete again. |
plane.upload.not_complete |
409 | upload <id> is <state>, not complete |
Complete the upload (POST /uploads/:id/complete), then deploy. |
plane.upload.not_found |
404 | no upload <id> of yours |
Open a new upload: durable-sdk deploy does. |
plane.upload.part_conflict |
409 | part <n> was received with another SHA-256 |
Open a new upload; a part is never overwritten. |
plane.upload.part_number |
422 | part <n> is outside 1 to <parts> |
Send parts 1 to <parts>. |
plane.upload.part_sha |
422 | part <n>'s body does not match its Content-SHA256 |
Send the part again. |
plane.upload.part_size |
422 | part <n> is <bytes> bytes; every part but the last is exactly <partBytes> |
Send the part at partBytes; the last part carries the rest. |
plane.upload.sha_header |
422 | Content-SHA256 is missing or not 64 hex | Send Content-SHA256 with the part's SHA-256 as hex. |
plane.upload.sha_mismatch |
422 | the assembled upload's SHA-256 is not the one declared | Open a new upload and send the parts again. |
plane.upload.too_big |
413 | the upload is <mb> MB; the <tier> tier admits <limit> MB |
Shrink the tree (an ignore file), or move to a tier with a larger upload_mb. |
plane.upload.too_large |
422 | the tree unpacks past 100 MB | Exclude build outputs and dependencies; the build installs them. |
plane.upload.too_many |
429 | <open> uploads are open with <mb> MB in flight; the bound is <limit> open and <limitMb> MB |
Complete an open upload, or let it expire (an hour), then open again. |
plane.upload.too_many_files |
422 | the tree holds more than 10 000 entries | Exclude generated trees; the limit is per deployment. |
plane.deploy — deployments#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.deploy.branch |
422 | a preview names its branch (1 to 200 characters) | Pass --branch <name>; a production deployment takes none. |
plane.deploy.build_failed |
422 | the build failed | Read the lines: durable-sdk deployments events <id>; fix; deploy again. |
plane.deploy.build_timeout |
422 | the build ran past <minutes> minutes, the <plan> tier's bound |
Make the build faster or move to a tier with more build minutes; durable-sdk deployments events <id> shows the lines. |
plane.deploy.check_failed |
422 | the deployment's platform check failed: <detail> |
Read the rows (durable-sdk deployments get <id>), fix the cause and deploy again; the deployment stands on its own hostname and was never promoted. |
plane.deploy.down_pending |
409 | a rollback that lowers the schema is not supported yet (DS-008) | Roll back to a deployment at the current schema version, or deploy a fix forward. |
plane.deploy.not_cancellable |
409 | deployment <id> is <state>: only a queued or building one is cancelled |
Leave a ready deployment or roll back; a failed one needs nothing. |
plane.deploy.not_found |
404 | no deployment <id> under this organization |
Run durable-sdk deployments list. |
plane.deploy.not_production |
422 | deployment <id> is a preview; a preview is never promoted or rolled back |
Deploy with --prod. |
plane.deploy.not_ready |
409 | deployment <id> is <state>, not ready |
Promote a ready production deployment. |
plane.deploy.previews_live |
429 | <n> previews are live, the <tier> tier's bound |
Run durable-sdk environments rm <name>, or wait for the sweep (preview_days). |
plane.deploy.rate |
429 | <n> deployments this hour, the bound |
Wait Retry-After. |
plane.deploy.target |
422 | target is production or preview | Deploy with --prod or to a preview. |
plane.secret — secrets#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.secret.name |
422 | <name> is not a variable name: A-Z, 0-9 and _, a letter first, 2 to 63 characters |
Choose a name of that shape. |
plane.secret.not_found |
404 | no secret <name> on <slug> |
Run durable-sdk secrets list. |
plane.secret.reserved |
422 | <name> is a platform variable |
Choose another name; the platform's variables are set by the plane. |
plane.secret.target |
422 | <target> is not a target: production, preview |
Name production, preview, or both. |
plane.secret.value |
422 | a value is 1 to 65536 characters | Send the value in the JSON body (the CLI reads stdin or --value-file). |
plane.domain — domains#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.domain.invalid |
422 | <hostname> is not a hostname |
A lowercase DNS name, no scheme, no path. |
plane.domain.not_found |
404 | no domain <hostname> on <slug> |
Run durable-sdk domains list. |
plane.domain.not_verified |
409 | <hostname> is not verified yet: add the TXT record shown |
Add the record, wait for DNS, then run durable-sdk domains verify <hostname>. |
plane.domain.platform |
422 | <hostname> is the app's own hostname and is never removed |
Nothing to do; the custom domain stands beside it. |
plane.domain.taken |
409 | <hostname> is already taken |
Remove it from the app that holds it, or choose another. |
plane.database — the read string#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.database.not_ready |
409 | the database of <slug> is <status> |
Wait for active. |
plane.database.plan_cap |
503 | <reason> |
Nothing on your side: the operator moves the plan or the tier's numbers. |
plane.database.read_string_exists |
409 | app <slug> already has a read string |
Run durable-sdk db read-string --rotate for a new value, or --revoke to drop the role. |
plane.database.read_string_missing |
404 | no read string stands for <slug> |
Run durable-sdk db read-string to mint one. |
plane.database.unconfigured |
503 | the platform's database is not configured | Retry after Retry-After; the operator sets DATABASE_URL and redeploys. |
plane.tier — the plan's entitlements#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.tier.apps |
403 | the <tier> tier admits <n> apps; a held app counts |
Delete an app (and wait out its hold), or move to a tier with more. |
plane.tier.custom_domain |
403 | custom domains are Pro and up | Upgrade the plan, or use the app's own hostname. |
plane.tier.previews_live |
403 | the <tier> tier admits <n> live previews |
Remove a preview, or move to a tier with more. |
plane.tier.promotion_rule |
403 | the <tier> tier promotes automatically |
Move to Pro or up for manual. |
plane.tier.regulated_by_hand |
403 | a regulated organization is set up by hand until the platform's database carries HIPAA; write to sales@durablesdk.com | Write to sales@durablesdk.com; the organization is onboarded by hand. |
plane.tier.seats |
403 | the <tier> tier admits <n> members |
Move to a tier with more seats. |
plane.tier.staging |
403 | staging is coming (DS-035) | Deploy to production or a preview. |
plane.tier.upload_mb |
413 | the <tier> tier admits uploads of <limit> MB |
Shrink the tree, or move to a tier with a larger upload_mb. |
plane.run, plane.idempotency, plane.value_shown_once#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.run.failed |
409 | the run failed: <sentence> |
Read the run (durable-sdk runs get <runId>); a run in limbo is redriven with durable-sdk runs redrive <runId>. |
plane.run.not_defined |
503 | the <workflow> run is not defined on this deployment |
The operator deploys the run; nothing a tenant can do. |
plane.run.not_found |
404 | no run <runId> under this organization |
Run durable-sdk runs limbo. |
plane.run.not_in_limbo |
409 | run <runId> is <state>, not in limbo |
Only a run in limbo is redriven; durable-sdk runs limbo lists them. |
plane.idempotency.key_invalid |
400 | Idempotency-Key is 1 to 64 characters of A-Z, a-z, 0-9, _ and - | Send a UUID. |
plane.idempotency.mismatch |
409 | Idempotency-Key <key> was used with a different body |
Mint a new key per intent; resend the same body under the same key to retry. |
plane.value_shown_once |
200 | the value was shown once and is not shown again | Rotate it for a new value. |
plane.console — the proxy to an app's operator API#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.console.no_deployment |
409 | app <slug> has no promoted deployment to ask |
Run durable-sdk deploy --prod. |
plane.console.not_json |
502 | the app's console answered no JSON | Check the deployment (durable-sdk deployments get <id>) and ask again. |
plane.console.path |
404 | no console route <path> |
Use a path of the console contract (GET /openapi.json lists them). |
plane.console.redirected |
502 | the app's console redirected | The app's hostname answers the console itself; check its DURABLE_HOSTNAMES. |
plane.console.timeout |
504 | the app's console did not answer within <seconds> s |
Ask again; a cold start or a build in flight can take longer. |
plane.console.unreachable |
503 | the app's console was not reached | Run durable-sdk logs; ask again. |
plane.github, plane.repository — the GitHub App#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.github.check_failed |
502 | the check run or the comment on the commit could not be written | Redrive the run once the repository is reachable; the deployment itself stands as the dashboard shows it. |
plane.github.installation_unknown |
404 | installation <installationId> is not one of this organization's |
Install the App from the app's Settings page and pick a repository from that installation. |
plane.github.not_connected |
404 | app <slug> has no repository connected |
Connect a repository from the app's Settings page. |
plane.github.not_registered |
503 | the GitHub App is not registered on this platform | The platform's owner registers the App from the platform page. |
plane.github.repo_unknown |
404 | repository <repoId> is not one the installation offers |
Pick a repository from GET /apps/:slug/repositories?installation=<id>, or widen the installation on GitHub. |
plane.github.signature |
401 | the webhook's signature does not verify | Nothing a tenant can do; the App's webhook secret is the one GitHub holds. |
plane.github.state |
400 | the connect flow's state is missing, forged or older than ten minutes | Start again from the app's Settings page. |
plane.github.tarball_too_large |
413 | the commit's tree is over <bytes> bytes as an archive |
Keep the repository under the upload's bound: move large files out of the tree or ignore them. |
plane.seal, plane.quota, plane.provider#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.seal.key_missing |
503 | a sealed credential was written under a key version this plane no longer holds | The operator restores the key version; nothing a tenant can do. |
plane.quota.rate |
429 | <bucket> is spent; retry after <seconds> s |
Wait Retry-After. |
plane.provider.down |
503 | the platform's provider is not answering | Wait Retry-After; a run that failed against it was compensated and finished as a value. |
plane.provider.rate |
503 | the platform's provider is rate limiting; the step retries in <seconds> s |
Nothing: the step retries. |
plane.body, plane.route, plane.internal, plane.webhook — the request's shape and the platform's own answers#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.body.invalid |
422 | <path>: <message> |
Send the shape the route's schema names (GET /openapi.json). |
plane.route.unknown |
404 | no route at <path> |
Read the routes in https://durablesdk.com/openapi.json; every route stands under /api/v1. |
plane.internal |
500 | the platform could not answer (<id>) |
Ask again; a plane that stays down is said on its status page. |
plane.webhook.signature |
401 | the webhook's signature does not verify | Nothing a tenant can do; the operator checks the signing secret. |
plane.maintenance, plane.deploys_paused, plane.signups_paused — the kill switches#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.maintenance |
503 | the platform is down for maintenance | Retry after Retry-After; the status page says when the platform is back. |
plane.deploys_paused |
503 | deployments are paused for maintenance | Retry after Retry-After; the status page says when deployments resume. |
plane.signups_paused |
503 | sign-ups are paused | Retry later; the status page says when sign-ups resume. |
plane.accounts#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.accounts.unconfigured |
503 | accounts are not open yet | Read the docs and use the public doors; accounts open once the plane's accounts keys stand. |
plane.capacity#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.capacity.databases |
503 | the platform is at its database capacity; the operator is told, try again later | Try again later; the operator raises the cap with the provider. |
plane.member#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.member.already_invited |
409 | that address already has an invitation; revoke it to send another | Revoke the pending invitation from the Members page, then invite again. |
plane.member.already_member |
409 | that address is already a member | Nothing to do; set their role from the Members page if that is the ask. |
plane.member.by_person |
403 | a key never invites or removes a person | Sign in and act from the Members page, or ask an admin. |
plane.member.email |
422 | that is not an email address | Type an address of the shape name@domain; to redrive an invite, invite again. |
plane.member.invitation_not_found |
404 | no pending invitation of that id | Run GET /members/invitations for the pending ones. |
plane.member.last_admin |
409 | the last admin stays; make someone else an admin first | Make another member an admin, then change or remove this one. |
plane.member.not_found |
404 | no member of that id | Run GET /members for the ids. |
plane.member.not_self |
403 | a person leaves for themselves alone | Use DELETE /members/:userId as an admin to remove someone else. |
plane.member.role |
422 | <role> is not a role (admin, member) |
Send admin or member. |
plane.member.seats_full |
403 | every seat is taken: <taken> of <cap>, invitations counted |
Revoke a pending invitation or remove a member, or move to a tier with more seats. |
plane.member.self |
409 | your own role and membership are another admin's to change | Ask another admin; to leave, use POST /members/leave. |
plane.organization#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.organization.by_person |
403 | a key never renames or deletes the organization | Sign in and act from the Settings page as an admin. |
plane.tenant#
| Code | Status | Sentence | Remedy |
|---|---|---|---|
plane.tenant.name |
422 | an organization has a name | Send a name of 1 to 128 characters. |
plane.tenant.not_found |
404 | no tenant of that id | Choose an organization on the dashboard, then ask again. |
Every provider-failure remedy on a run names durable-sdk runs redrive <runId> when the run is in limbo, and nothing when it finished as a value.