Error thrown when a synchronous transcription request fails.

Hierarchy

  • Error
    • SyncTranscriptError

Constructors

  • Create a new SyncTranscriptError.

    Parameters

    • message: string

      The human-readable error message.

    • Optionalstatus: number

      The HTTP status code of the failed request.

    • OptionalerrorCode: string

      Machine-readable code — the snake_cased problem-details title from the server (e.g. bad_audio, audio_too_large, capacity_exceeded, inference_timeout).

    • OptionalretryAfter: number

      Seconds to wait before retrying, from the Retry-After header on 429/503 responses.

    Returns SyncTranscriptError

Properties

errorCode?: string

Machine-readable code — the snake_cased problem-details title from the server (e.g. bad_audio, audio_too_large, capacity_exceeded, inference_timeout).

message: string
name: string = "SyncTranscriptError"
retryAfter?: number

Seconds to wait before retrying, from the Retry-After header on 429/503 responses.

stack?: string
status?: number

The HTTP status code of the failed request.

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void