BuildLogInterruptedError
Section titled “BuildLogInterruptedError”class BuildLogInterruptedError(DaytonaError)Observation failed; cursor is the last successfully delivered checkpoint.
A callback failure is never retried. Its cause may have partially applied application effects; persist output and cursor together before resuming.
BuildLogInterruptedError.__init__
Section titled “BuildLogInterruptedError.__init__”def __init__(message: str, *, cursor: str | None = None, code: str = 'BUILD_LOG_INTERRUPTED', status_code: int | None = None) -> NoneDaytonaError
Section titled “DaytonaError”class DaytonaError(_shared.DaytonaError)Base class for all SDK errors.
DaytonaError.__init__
Section titled “DaytonaError.__init__”def __init__(message: str, *, status_code: Optional[int] = None, code: Optional[str] = None, source: Optional[str] = None, details: Optional[ErrorDetails] = None) -> NoneBadRequestError
Section titled “BadRequestError”class BadRequestError(DaytonaError, _shared.DaytonaBadRequestError)HTTP 400.
UnauthorizedError
Section titled “UnauthorizedError”class UnauthorizedError(DaytonaError, _shared.DaytonaAuthenticationError)HTTP 401.
ForbiddenError
Section titled “ForbiddenError”class ForbiddenError(DaytonaError, _shared.DaytonaForbiddenError)HTTP 403.
NotFoundError
Section titled “NotFoundError”class NotFoundError(DaytonaError, _shared.DaytonaNotFoundError)HTTP 404.
RequestTimeoutError
Section titled “RequestTimeoutError”class RequestTimeoutError(DaytonaError, _shared.DaytonaTimeoutError)HTTP 408.
SandboxCreateTimeoutError
Section titled “SandboxCreateTimeoutError”class SandboxCreateTimeoutError(RequestTimeoutError)create() ran out of caller budget while the sandbox was still starting.
The sandbox was created and is left running; sandbox_id lets the
caller pick it up (d.v2.get(sandbox_id)) or delete it.
SandboxCreateTimeoutError.__init__
Section titled “SandboxCreateTimeoutError.__init__”def __init__(sandbox_id: str) -> NoneDockerWaitTimeoutError
Section titled “DockerWaitTimeoutError”class DockerWaitTimeoutError(RequestTimeoutError)sandbox.docker.wait_until_ready() ran out of caller budget before Docker was ready.
status is the last observed Docker status (starting, or
deferred while the boot has not started Docker yet), or None when
no status answer arrived before the deadline (for example a stalled first
request).
DockerWaitTimeoutError.__init__
Section titled “DockerWaitTimeoutError.__init__”def __init__(status: Optional[DockerStatus]) -> NoneConflictError
Section titled “ConflictError”class ConflictError(DaytonaError, _shared.DaytonaConflictError)HTTP 409.
DockerNotReadyError
Section titled “DockerNotReadyError”class DockerNotReadyError(ConflictError)sandbox.docker.wait_until_ready() saw Docker settle in a state that cannot become ready.
The terminal states are failed, not_present, disabled,
unmanaged, unsupported, and deferred with reason
function-ready-template. status is the observed Docker
status; its reason says why, and process_id (when set) names the
process whose logs hold Docker’s output. The sandbox itself stays usable.
DockerNotReadyError.__init__
Section titled “DockerNotReadyError.__init__”def __init__(status: DockerStatus) -> NoneSandboxTerminalStateError
Section titled “SandboxTerminalStateError”class SandboxTerminalStateError(ConflictError)wait_for_state() saw the sandbox reach a terminal state before any target.
state is the observed public sandbox state (e.g. "destroyed").
SandboxTerminalStateError.__init__
Section titled “SandboxTerminalStateError.__init__”def __init__(sandbox_id: str, state: SandboxState, *, raw_state: Optional[str] = None) -> NonePreconditionFailedError
Section titled “PreconditionFailedError”class PreconditionFailedError(DaytonaError)HTTP 412 — the If-Match revision no longer matches (network policy CAS).
SecretAlreadyExistsError
Section titled “SecretAlreadyExistsError”class SecretAlreadyExistsError(PreconditionFailedError)A create-only secret write found an existing secret.
GoneError
Section titled “GoneError”class GoneError(DaytonaError, _shared.DaytonaGoneError)HTTP 410.
MethodNotAllowedError
Section titled “MethodNotAllowedError”class MethodNotAllowedError(DaytonaError)HTTP 405.
PayloadTooLargeError
Section titled “PayloadTooLargeError”class PayloadTooLargeError(DaytonaError)HTTP 413.
UnsupportedMediaTypeError
Section titled “UnsupportedMediaTypeError”class UnsupportedMediaTypeError(DaytonaError)HTTP 415.
UnprocessableEntityError
Section titled “UnprocessableEntityError”class UnprocessableEntityError(DaytonaError, _shared.DaytonaUnprocessableEntityError)HTTP 422.
RateLimitError
Section titled “RateLimitError”class RateLimitError(DaytonaError, _shared.DaytonaRateLimitError)HTTP 429.
LimitExceededError
Section titled “LimitExceededError”class LimitExceededError(RateLimitError)LIMIT_EXCEEDED (429): an organization limit is exhausted.
Subclasses RateLimitError, so except RateLimitError keeps matching;
limit is the limit’s stable machine name (e.g. max_concurrent_vms) and
current/max are the counts the refusal was computed from. Attributes are
None when a body omits or malforms them.
PreconditionRequiredError
Section titled “PreconditionRequiredError”class PreconditionRequiredError(DaytonaError)ServiceUnavailableError
Section titled “ServiceUnavailableError”class ServiceUnavailableError(DaytonaError, _shared.DaytonaServiceUnavailableError)HTTP 503.
InternalServerError
Section titled “InternalServerError”class InternalServerError(DaytonaError, _shared.DaytonaInternalServerError)HTTP 5xx.
NotSupportedError
Section titled “NotSupportedError”class NotSupportedError(InternalServerError)ConnectionError
Section titled “ConnectionError”class ConnectionError(DaytonaError, _shared.DaytonaConnectionError)Network connection failure.
ClientTimeoutError
Section titled “ClientTimeoutError”class ClientTimeoutError(DaytonaError, _shared.DaytonaTimeoutError)Client-side transport timeout.
TransferCancelledError
Section titled “TransferCancelledError”class TransferCancelledError(DaytonaError)A local file transfer was cancelled before completion.
SandboxCreateRequestTimeoutError
Section titled “SandboxCreateRequestTimeoutError”class SandboxCreateRequestTimeoutError(ClientTimeoutError)The create() request itself timed out before the server answered.
The server may still have created the sandbox. idempotency_key is the
key the request was sent with. Retry with that key and the identical source
and create arguments, in the same project and coordinator or cell, to
recover the sandbox (or create it if the first request never landed).
New records reject changed requests; historical mappings without a request
digest may replay the original without detecting changes.
SandboxCreateRequestTimeoutError.__init__
Section titled “SandboxCreateRequestTimeoutError.__init__”def __init__(idempotency_key: str) -> NoneSandboxCreateConnectionError
Section titled “SandboxCreateConnectionError”class SandboxCreateConnectionError(ConnectionError)The connection failed while the create() request was in flight.
Same outcome as SandboxCreateRequestTimeoutError: the sandbox may
or may not exist; retry create() with the same idempotency_key, source
and create arguments, in the same project and coordinator or cell.
SandboxCreateConnectionError.__init__
Section titled “SandboxCreateConnectionError.__init__”def __init__(idempotency_key: str, detail: str) -> NoneProcessNotFoundError
Section titled “ProcessNotFoundError”class ProcessNotFoundError(NotFoundError)PROCESS_NOT_FOUND.
ProcessStartFailedError
Section titled “ProcessStartFailedError”class ProcessStartFailedError(BadRequestError)PROCESS_START_FAILED.
ProcessTerminalError
Section titled “ProcessTerminalError”class ProcessTerminalError(ConflictError)PROCESS_TERMINAL.
ProcessExecutionTimeoutError
Section titled “ProcessExecutionTimeoutError”class ProcessExecutionTimeoutError(RequestTimeoutError)PROCESS_EXECUTION_TIMEOUT.
NameConflictError
Section titled “NameConflictError”class NameConflictError(ConflictError)NAME_CONFLICT.
InvalidCursorError
Section titled “InvalidCursorError”class InvalidCursorError(BadRequestError)INVALID_CURSOR.
CursorExpiredError
Section titled “CursorExpiredError”class CursorExpiredError(ConflictError)CURSOR_EXPIRED.
StdinClosedError
Section titled “StdinClosedError”class StdinClosedError(ConflictError)STDIN_CLOSED.
StdinUnavailableError
Section titled “StdinUnavailableError”class StdinUnavailableError(ConflictError)STDIN_UNAVAILABLE.
ProtectedProcessError
Section titled “ProtectedProcessError”class ProtectedProcessError(ForbiddenError)PROTECTED_PROCESS.
UnsupportedOperationError
Section titled “UnsupportedOperationError”class UnsupportedOperationError(BadRequestError)UNSUPPORTED_OPERATION.
SessionNotFoundError
Section titled “SessionNotFoundError”class SessionNotFoundError(NotFoundError)SESSION_NOT_FOUND.
SessionEndedError
Section titled “SessionEndedError”class SessionEndedError(GoneError)SESSION_ENDED.
KernelUnavailableError
Section titled “KernelUnavailableError”class KernelUnavailableError(ServiceUnavailableError)KERNEL_UNAVAILABLE.
LspServerUnavailableError
Section titled “LspServerUnavailableError”class LspServerUnavailableError(ServiceUnavailableError)LSP_SERVER_UNAVAILABLE.
LspNotStartedError
Section titled “LspNotStartedError”class LspNotStartedError(ConflictError)LSP_NOT_STARTED.
AddonUnavailableError
Section titled “AddonUnavailableError”class AddonUnavailableError(ServiceUnavailableError)ADDON_UNAVAILABLE.
FileNotFoundError
Section titled “FileNotFoundError”class FileNotFoundError(NotFoundError)FILE_NOT_FOUND.
InvalidFilePathError
Section titled “InvalidFilePathError”class InvalidFilePathError(BadRequestError)INVALID_FILE_PATH.
FileAccessDeniedError
Section titled “FileAccessDeniedError”class FileAccessDeniedError(ForbiddenError)FILE_ACCESS_DENIED.
FileReadFailedError
Section titled “FileReadFailedError”class FileReadFailedError(InternalServerError)FILE_READ_FAILED.
GitAuthFailedError
Section titled “GitAuthFailedError”class GitAuthFailedError(UnauthorizedError)GIT_AUTH_FAILED.
GitRepoNotFoundError
Section titled “GitRepoNotFoundError”class GitRepoNotFoundError(NotFoundError)GIT_REPO_NOT_FOUND.
GitBranchNotFoundError
Section titled “GitBranchNotFoundError”class GitBranchNotFoundError(NotFoundError)GIT_BRANCH_NOT_FOUND.
GitBranchExistsError
Section titled “GitBranchExistsError”class GitBranchExistsError(ConflictError)GIT_BRANCH_EXISTS.
DesktopNotReadyError
Section titled “DesktopNotReadyError”class DesktopNotReadyError(ConflictError)DESKTOP_NOT_READY.
FsFreezeUnsupportedError
Section titled “FsFreezeUnsupportedError”class FsFreezeUnsupportedError(ConflictError)FS_FREEZE_UNSUPPORTED (runner-only control route).
NoDefaultGatewayError
Section titled “NoDefaultGatewayError”class NoDefaultGatewayError(ServiceUnavailableError)NO_DEFAULT_GATEWAY (runner-only control route; retry).
AtomicUploadUnsupportedError
Section titled “AtomicUploadUnsupportedError”class AtomicUploadUnsupportedError(ConflictError)ATOMIC_UPLOAD_UNSUPPORTED.
OrgSuspendedError
Section titled “OrgSuspendedError”class OrgSuspendedError(DaytonaError)ProjectBudgetExceededError
Section titled “ProjectBudgetExceededError”class ProjectBudgetExceededError(DaytonaError)PROJECT_BUDGET_EXCEEDED (402): the project reached its monthly budget.
New sandboxes cannot start in the project until the budget is raised or removed, or the next calendar month (UTC) begins.
RateLimitedError
Section titled “RateLimitedError”class RateLimitedError(RateLimitError)OverloadedError
Section titled “OverloadedError”class OverloadedError(RateLimitError)NotSupportedForClassError
Section titled “NotSupportedForClassError”class NotSupportedForClassError(ConflictError)FeatureNotEnabledError
Section titled “FeatureNotEnabledError”class FeatureNotEnabledError(ForbiddenError)UnsupportedVolumeTypeError
Section titled “UnsupportedVolumeTypeError”class UnsupportedVolumeTypeError(BadRequestError)BucketCreateFailedError
Section titled “BucketCreateFailedError”class BucketCreateFailedError(InternalServerError)BucketDeleteFailedError
Section titled “BucketDeleteFailedError”class BucketDeleteFailedError(InternalServerError)BucketNotEmptyError
Section titled “BucketNotEmptyError”class BucketNotEmptyError(ConflictError)OriginImportOnlyError
Section titled “OriginImportOnlyError”class OriginImportOnlyError(BadRequestError)ReadOnlyUnsupportedError
Section titled “ReadOnlyUnsupportedError”class ReadOnlyUnsupportedError(BadRequestError)BillingDisabledError
Section titled “BillingDisabledError”class BillingDisabledError(NotSupportedError)BillingUnreachableError
Section titled “BillingUnreachableError”class BillingUnreachableError(InternalServerError)BillingUnavailableError
Section titled “BillingUnavailableError”class BillingUnavailableError(ServiceUnavailableError)BillingNotProvisionedError
Section titled “BillingNotProvisionedError”class BillingNotProvisionedError(ConflictError)ChargeNotFoundError
Section titled “ChargeNotFoundError”class ChargeNotFoundError(NotFoundError)InvoiceNotFoundError
Section titled “InvoiceNotFoundError”class InvoiceNotFoundError(NotFoundError)CouponNotFoundError
Section titled “CouponNotFoundError”class CouponNotFoundError(NotFoundError)CouponExpiredError
Section titled “CouponExpiredError”class CouponExpiredError(ConflictError)CouponLimitReachedError
Section titled “CouponLimitReachedError”class CouponLimitReachedError(ConflictError)CouponAlreadyRedeemedError
Section titled “CouponAlreadyRedeemedError”class CouponAlreadyRedeemedError(ConflictError)InvoiceNotFinalizedError
Section titled “InvoiceNotFinalizedError”class InvoiceNotFinalizedError(ConflictError)InvoiceNotPayableError
Section titled “InvoiceNotPayableError”class InvoiceNotPayableError(ConflictError)ChargeNotSucceededError
Section titled “ChargeNotSucceededError”class ChargeNotSucceededError(ConflictError)PlanUnchangedError
Section titled “PlanUnchangedError”class PlanUnchangedError(ConflictError)PlanChangePendingError
Section titled “PlanChangePendingError”class PlanChangePendingError(ConflictError)PlanManagedByOperatorError
Section titled “PlanManagedByOperatorError”class PlanManagedByOperatorError(ConflictError)PaymentMethodRequiredError
Section titled “PaymentMethodRequiredError”class PaymentMethodRequiredError(ConflictError)BillingAccountConflictError
Section titled “BillingAccountConflictError”class BillingAccountConflictError(ConflictError)UnknownPlanError
Section titled “UnknownPlanError”class UnknownPlanError(BadRequestError)PlanRequiresSalesError
Section titled “PlanRequiresSalesError”class PlanRequiresSalesError(BadRequestError)AutomaticTopUpNotAvailableError
Section titled “AutomaticTopUpNotAvailableError”class AutomaticTopUpNotAvailableError(ConflictError)SearchNotConfiguredError
Section titled “SearchNotConfiguredError”class SearchNotConfiguredError(NotSupportedError)SearchUnavailableError
Section titled “SearchUnavailableError”class SearchUnavailableError(ServiceUnavailableError)SandboxWakingError
Section titled “SandboxWakingError”class SandboxWakingError(ServiceUnavailableError)SandboxNotRunningError
Section titled “SandboxNotRunningError”class SandboxNotRunningError(ConflictError)SandboxStartFailedError
Section titled “SandboxStartFailedError”class SandboxStartFailedError(ConflictError)ImageNotFoundError
Section titled “ImageNotFoundError”class ImageNotFoundError(NotFoundError)ImageNotReadyError
Section titled “ImageNotReadyError”class ImageNotReadyError(ConflictError)ImageFormatOutdatedError
Section titled “ImageFormatOutdatedError”class ImageFormatOutdatedError(ConflictError)IMAGE_FORMAT_OUTDATED (409): the image is stored in an older format
than the current one (Image.format_outdated) and this door cannot
convert it. Convert it with POST /images/{id}/convert, or create a
Linux sandbox from it, which converts it first.
ImageBuildFailedError
Section titled “ImageBuildFailedError”class ImageBuildFailedError(ConflictError)IMAGE_BUILD_FAILED (409), or the SDK-minted refusal when
create_from_build()’s image build ends failed. image_id names
the failed image (so its build log can be fetched) when the SDK knows it;
build_error is the build’s recorded error, when any.
ImageBuildFailedError.__init__
Section titled “ImageBuildFailedError.__init__”def __init__(message: str, *, status_code: Optional[int] = None, code: Optional[str] = None, source: Optional[str] = None, details: Optional[ErrorDetails] = None, image_id: Optional[str] = None, build_error: Optional[str] = None) -> NoneImageClassMismatchError
Section titled “ImageClassMismatchError”class ImageClassMismatchError(ConflictError)ImageNameTakenError
Section titled “ImageNameTakenError”class ImageNameTakenError(ConflictError)ImageNameReservedError
Section titled “ImageNameReservedError”class ImageNameReservedError(BadRequestError)IdleOutOfRangeError
Section titled “IdleOutOfRangeError”class IdleOutOfRangeError(BadRequestError)CreateTtlOutOfRangeError
Section titled “CreateTtlOutOfRangeError”class CreateTtlOutOfRangeError(BadRequestError)SnapshotNotFoundError
Section titled “SnapshotNotFoundError”class SnapshotNotFoundError(NotFoundError)SnapshotNotReadyError
Section titled “SnapshotNotReadyError”class SnapshotNotReadyError(ConflictError)SnapshotClassMismatchError
Section titled “SnapshotClassMismatchError”class SnapshotClassMismatchError(ConflictError)DaytonaValidationError
Section titled “DaytonaValidationError”DaytonaValidationError = BadRequestErrorDaytonaAuthenticationError
Section titled “DaytonaAuthenticationError”DaytonaAuthenticationError = UnauthorizedErrorDaytonaAuthorizationError
Section titled “DaytonaAuthorizationError”DaytonaAuthorizationError = ForbiddenErrorDaytonaNotFoundError
Section titled “DaytonaNotFoundError”DaytonaNotFoundError = NotFoundErrorDaytonaConflictError
Section titled “DaytonaConflictError”DaytonaConflictError = ConflictErrorDaytonaRateLimitError
Section titled “DaytonaRateLimitError”DaytonaRateLimitError = RateLimitErrorDaytonaTimeoutError
Section titled “DaytonaTimeoutError”DaytonaTimeoutError = ClientTimeoutErrorDaytonaConnectionError
Section titled “DaytonaConnectionError”DaytonaConnectionError = ConnectionErrorDaytonaNotSupportedError
Section titled “DaytonaNotSupportedError”DaytonaNotSupportedError = NotSupportedError