Skip to content

Errors

Typed errors by cause. Every API error carries a code, a message and the HTTP status.

Every method shows the same operation in each SDK; pick a language once and every tab on the site follows it.

Python TypeScript Go Ruby Java

The API returned a structured error response.

Attributes: code: The server’s error code. May be a value outside ERROR_CODES if the deployment has added a new code; callers should not assume exhaustiveness. message: Human-readable server message. status_code: The HTTP status code of the response. request_id: Server-assigned request ID, when present, for support/correlation. details: Structured detail entries from the error response, if any. retryable: Server-provided retry hint in the v2 API, when present. retry_after_seconds: Minimum delay in the v2 API, when present.

Python exposes these as methods; see below.

Not in the Python SDK’s ApiError.

Not in the Python SDK’s ApiError.

Not in the Python SDK’s ApiError.

Not in the Python SDK’s ApiError.

Python TypeScript Go Ruby Java

The credential is missing, wrong or expired (UNAUTHENTICATED).

Python exposes these as methods; see below.

Not in the Python SDK’s AuthenticationError.

Not in the Python SDK’s AuthenticationError.

Not in the Python SDK’s AuthenticationError.

Python TypeScript Go Ruby Java

The team’s free credit is spent or its spend limit reached (BILLING_BLOCKED); not retryable until billing changes.

Python exposes these as methods; see below.

Not in the Python SDK’s BillingBlockedError.

Not in the Python SDK’s BillingBlockedError.

Not in the Python SDK’s BillingBlockedError.

Python TypeScript Go Ruby Java

A template build ended failed (the reference vendor’s BuildError): raised by Template.build(wait=True) (or with on_log) once the build is over. build_id and template_id name it, reason is the server’s, and the log is still readable with TemplateBuild(...).follow_logs.

Python exposes these as methods; see below.

Not in the Python SDK’s BuildError.

Not in the Python SDK’s BuildError.

Not in the Python SDK’s BuildError.

Not in the Python SDK’s BuildError.

Python TypeScript Go Ruby Java

The resource already exists or the idempotency key was used for another request (ALREADY_EXISTS, IDEMPOTENCY_CONFLICT).

Python exposes these as methods; see below.

Not in the Python SDK’s ConflictError.

Not in the Python SDK’s ConflictError.

Not in the Python SDK’s ConflictError.

Python TypeScript Go Ruby Java

A command, file or other data-plane call on a handle that has no data-plane access: the sandbox was killed (by this handle), paused, or the handle came from Sandbox.get. Raised by the SDK before any request; connect or resume gives access again unless the sandbox has ended. A SandboxError, and still a RuntimeError.

Python exposes these as methods; see below.

Not in the Python SDK’s DataPlaneUnavailableError.

Not in the Python SDK’s DataPlaneUnavailableError.

Not in the Python SDK’s DataPlaneUnavailableError.

Python TypeScript Go Ruby Java

The server gave up waiting (DEADLINE_EXCEEDED).

Python exposes these as methods; see below.

Not in the Python SDK’s DeadlineExceededError.

Not in the Python SDK’s DeadlineExceededError.

Not in the Python SDK’s DeadlineExceededError.

Python TypeScript Go Ruby Java

The sandbox’s guest took the call and did not answer in time: the server answered GUEST_UNRESPONSIVE (503), for example on an exec or after a memory resume whose guest has not reconnected (the reference vendor’s GuestUnresponsiveError). Assigned from that code only. An UnavailableError (the status is 503), so except UnavailableError still catches it. The recovery after a resume is resume(on_resume="reboot"), which boots the sandbox from its disk instead of its memory snapshot.

Python exposes these as methods; see below.

Not in the Python SDK’s GuestUnresponsiveError.

Not in the Python SDK’s GuestUnresponsiveError.

Not in the Python SDK’s GuestUnresponsiveError.

Python TypeScript Go Ruby Java

The server failed (INTERNAL); the request may or may not have taken effect.

Python exposes these as methods; see below.

Not in the Python SDK’s InternalError.

Not in the Python SDK’s InternalError.

Not in the Python SDK’s InternalError.

Python TypeScript Go Ruby Java

The request is malformed or out of bounds (INVALID_ARGUMENT).

Python exposes these as methods; see below.

Not in the Python SDK’s InvalidArgumentError.

Not in the Python SDK’s InvalidArgumentError.

Not in the Python SDK’s InvalidArgumentError.

Python TypeScript Go Ruby Java

The disk is full: a data-plane write refused with envd’s ERROR_CODE_DISK_FULL, or an API answer with HTTP 507 (the reference vendor’s NotEnoughSpaceError). A QuotaExceededError, so except QuotaExceededError still catches it.

Python exposes these as methods; see below.

Not in the Python SDK’s NotEnoughSpaceError.

Not in the Python SDK’s NotEnoughSpaceError.

Not in the Python SDK’s NotEnoughSpaceError.

limit: str | None

Property (read-only).

max: str | None

Property (read-only).

Python TypeScript Go Ruby Java

The resource does not exist, or is not yours (NOT_FOUND).

Python exposes these as methods; see below.

Not in the Python SDK’s NotFoundError.

Not in the Python SDK’s NotFoundError.

Not in the Python SDK’s NotFoundError.

Python TypeScript Go Ruby Java

The credential is valid but may not do this (PERMISSION_DENIED).

Python exposes these as methods; see below.

Not in the Python SDK’s PermissionDeniedError.

Not in the Python SDK’s PermissionDeniedError.

Not in the Python SDK’s PermissionDeniedError.

Python TypeScript Go Ruby Java

Too many requests; wait retry_after_seconds and try again (RATE_LIMITED).

Python exposes these as methods; see below.

Not in the Python SDK’s RateLimitedError.

Not in the Python SDK’s RateLimitedError.

Not in the Python SDK’s RateLimitedError.

Python TypeScript Go Ruby Java

No response arrived within the client’s timeout.

Python exposes these as methods; see below.

Not in the Python SDK’s RequestTimeoutError.

Not in the Python SDK’s RequestTimeoutError.

Not in the Python SDK’s RequestTimeoutError.

Not in the Python SDK’s RequestTimeoutError.

Python TypeScript Go Ruby Java

Base class for all errors raised by this package.

Python TypeScript Go Ruby Java

the reference vendor’s TimeoutError: something did not finish in time on the client’s side. Raised for an HTTP request with no answer in time (as the RequestTimeoutError it already was) and by the waits: wait_until_running, a template build’s wait, a terminal’s wait_for, wait_until_ready on a desktop, a rollout’s wait. error_kind is timeout. It is a RequestTimeoutError (so a TransportError and SandboxError) and still the built-in TimeoutError that the waits raised, so every existing except keeps catching it. A server’s DEADLINE_EXCEEDED stays a DeadlineExceededError. Inside this package refer to it as errors.TimeoutError; a bare TimeoutError is the built-in.

Python exposes these as methods; see below.

Not in the Python SDK’s TimeoutError.

Not in the Python SDK’s TimeoutError.

Not in the Python SDK’s TimeoutError.

Not in the Python SDK’s TimeoutError.

Python TypeScript Go Ruby Java

The HTTP request could not be completed (DNS, connection, timeout, TLS).

Python exposes these as methods; see below.

Not in the Python SDK’s TransportError.

Not in the Python SDK’s TransportError.

Not in the Python SDK’s TransportError.

Not in the Python SDK’s TransportError.

Python TypeScript Go Ruby Java

The service could not take the request now (UNAVAILABLE); safe to retry.

Python exposes these as methods; see below.

Not in the Python SDK’s UnavailableError.

Not in the Python SDK’s UnavailableError.

Not in the Python SDK’s UnavailableError.

Python TypeScript Go Ruby Java

A callback whose signature does not verify: refuse it.

Python TypeScript Go Ruby Java