ApiError. In TypeScript, all errors extend SkyvernError. Both include the HTTP status code, response body, and headers.
Error types
Import errors from the package:
skyvern.client.errors. The base ApiError class lives in skyvern.client.core.
Catching errors
Error properties
Every error has these attributes:Timeouts
Two different timeouts apply:HTTP request timeout
Controls how long the SDK waits for the HTTP response from the Skyvern API. Set it in the constructor or per-request:SkyvernTimeoutError is thrown.
Completion timeout
Controls how longwait_for_completion / waitForCompletion polls before giving up. This is separate from the HTTP timeout:
TimeoutError (via asyncio.timeout), not ApiError. In TypeScript, it throws a standard Error with a timeout message.
Retries
Configure automatic retries for transient failures. Set it in the constructor or per-request:get_run / getRun to check the status and re-run if needed.
Abort requests (TypeScript only)
Cancel in-flight requests usingAbortSignal:
Run failure vs API errors
There are two distinct failure modes: API error - The HTTP request itself failed. The SDK raises an exception.status field:

