Skip to content

Other types

Python TypeScript Go Ruby Java

The resource is in the wrong state for this call (FAILED_PRECONDITION, SANDBOX_NOT_RUNNING, SANDBOX_PAUSED, TEMPLATE_NOT_READY).

Python exposes these as methods; see below.

Not in the Python SDK’s PreconditionError.

Not in the Python SDK’s PreconditionError.

Not in the Python SDK’s PreconditionError.

Python TypeScript Go Ruby Java

A plan limit would be exceeded (QUOTA_EXCEEDED, RESOURCE_EXHAUSTED). limit and max name it when the server says.

Python exposes these as methods; see below.

Not in the Python SDK’s QuotaExceededError.

Not in the Python SDK’s QuotaExceededError.

Not in the Python SDK’s QuotaExceededError.

limit: str | None

Property (read-only).

max: str | None

Property (read-only).

Python TypeScript Go Ruby Java

A file or directory in a sandbox does not exist: a data-plane failure with envd’s ERROR_CODE_PATH_NOT_FOUND (the reference vendor’s FileNotFoundError; named so it does not shadow Python’s builtin). The same failure is a ProcessError and a NotFoundError.

Python TypeScript Go Ruby Java

The sandbox does not exist, or is not yours: a 404 on /v2/sandboxes/{id} or on one of the actions whose 404 can only mean the sandbox is missing, such as /pause or /egress (the reference vendor’s SandboxNotFoundError). A NotFoundError, so except NotFoundError still catches it.

Python exposes these as methods; see below.

Not in the Python SDK’s SandboxNotFoundError.

Not in the Python SDK’s SandboxNotFoundError.

Not in the Python SDK’s SandboxNotFoundError.

Python TypeScript Go Ruby Java

The sandbox is not running, so the call cannot proceed: the server answered SANDBOX_NOT_RUNNING (the reference vendor’s SandboxNotRunningError). A PreconditionError, so except PreconditionError still catches it. A paused sandbox (SANDBOX_PAUSED) stays a plain PreconditionError: resume or connect brings it back.

Python exposes these as methods; see below.

Not in the Python SDK’s SandboxNotRunningError.

Not in the Python SDK’s SandboxNotRunningError.

Not in the Python SDK’s SandboxNotRunningError.

Python TypeScript Go Ruby Java

The sandbox could not be reached: the server answered SANDBOX_UNREACHABLE (503: the API could not reach the host the sandbox runs on), as opposed to the API itself being unavailable (the reference vendor’s SandboxUnreachableError). Assigned from that code only. An UnavailableError, so except UnavailableError still catches it, and still safe to retry.

Python exposes these as methods; see below.

Not in the Python SDK’s SandboxUnreachableError.

Not in the Python SDK’s SandboxUnreachableError.

Not in the Python SDK’s SandboxUnreachableError.

Python TypeScript Go Ruby Java

The team has no secret of that name: a 404 on /v2/secrets/{name} (the reference vendor’s SecretNotFoundError).

Python exposes these as methods; see below.

Not in the Python SDK’s SecretNotFoundError.

Not in the Python SDK’s SecretNotFoundError.

Not in the Python SDK’s SecretNotFoundError.

Python TypeScript Go Ruby Java

An operator suspended the team (TEAM_SUSPENDED).

Python exposes these as methods; see below.

Not in the Python SDK’s TeamSuspendedError.

Not in the Python SDK’s TeamSuspendedError.

Not in the Python SDK’s TeamSuspendedError.

Python TypeScript Go Ruby Java

The template cannot be used as asked: the server answered TEMPLATE_NOT_READY, the template has no finished build (the reference vendor’s TemplateError). A PreconditionError. A build that ended failed is a BuildError.

Python exposes these as methods; see below.

Not in the Python SDK’s TemplateError.

Not in the Python SDK’s TemplateError.

Not in the Python SDK’s TemplateError.

Python TypeScript Go Ruby Java

The volume does not exist, or is not yours: a 404 on /v2/volumes/{id} (the reference vendor’s VolumeNotFoundError).

Python exposes these as methods; see below.

Not in the Python SDK’s VolumeNotFoundError.

Not in the Python SDK’s VolumeNotFoundError.

Not in the Python SDK’s VolumeNotFoundError.