Errors and retries
Handle typed SDK errors without losing asynchronous work.
All HTTP client errors inherit from OrbitalsAIError. Catch a specific error when your application can recover differently.
Timeouts do not cancel jobs
When wait_for_text_job() raises the SDK’s TimeoutError, the backend job continues running. Retain its ID and query it later:
Streaming errors
Streaming has protocol-specific exceptions under orbitalsai.streaming, including ConnectionError, AuthenticationError, AudioFormatError, InsufficientCreditsError, and SessionClosedError.
Use on_error() for session failures and on_translation_failed() for a missing translation. The latter means the source transcript is still valid.
See Errors and limits for platform behavior and the API error reference for HTTP status handling.