Skip to main content

API Error Listing for Requests

This page provides a comprehensive overview of the exception messages that may be returned by the service. These exception messages are categorized based on the type of request or operation, offering detailed insights into potential issues encountered during service usage, such as Unscripted Requests, Scripted Requests, and specific Authentication or Audio Processing errors.

Each error is listed with:

  • Name: The name of the exception.
  • Message: The detailed error message returned by the system.
  • Parameters: Any additional information or context required for the error.
  • Description: A brief explanation of when and why the error occurs.

Use this listing as a reference to understand, debug, and handle potential issues when interacting with the API effectively.

Unscripted Requests

Unscripted requests involve real-time or asynchronous operations where the API processes input dynamically without relying on predefined scripts or workflows. These requests are often used for scenarios such as live audio processing, ad-hoc ASR (Automatic Speech Recognition) tasks, or other dynamic interactions.

ASR Exceptions

ExceptionMessageParametersDescription
ASRInterProcessExceptionexception in ASR: {error}error (str): Details of the error.Raised when there is an inter-process exception in the ASR system.
ASRSocketTimeoutASR timeoutNoneRaised when the ASR system times out while processing.
ASRConnectionFailedASR Connection FailedNoneRaised when the connection to the ASR system fails.

Audio Exceptions

ExceptionMessageParametersDescription
FailedToReadAudioFromURLFailed to read audio from the URLNoneRaised when the server cannot read the audio from the provided URL.
FailedToParseAudioHeaderFailed to parse audio headerNoneRaised when the audio header cannot be parsed.
InvalidAudioFormatOnly 16 kHz mono WAV, FLAC or OGG-Opus audio allowedNoneRaised when the provided audio format is invalid.
FailedToConvertAudioThe server failed to parse your {audio_format} audioaudio_format (str): The format of the audio that failed conversion.Raised when the server fails to convert the provided audio format.
FailedToDecodeAudioFromBytesFailed to decode audioNoneRaised when the server fails to decode audio data from bytes.
MissingAudioParamMissing audio param!NoneRaised when the required audio parameter is missing.
AudioTooBigForSyncAudio is too big for sync mode, please change to async modestream_dir (str): Directory or location of the audio stream.Raised when the provided audio is too large for synchronous processing.
FailedToUseAudioAn unexpected error occurred while processing the audio. Please check if the audio is valid and it's not corrupted.NoneRaised when an unexpected error occurs while processing the audio.

Authentication Exceptions

ExceptionMessageParametersDescription
NoTokenProvidedNo session token providedNoneRaised when no session token is provided.
InvalidSessionTokenInvalid session token: {token}token (str): The invalid session token.Raised when an invalid session token is provided.
UserDoesNotExistCould not find {user_type} IDuser_type (str): The type of user ID.Raised when the specified user does not exist.
ClientIsNotActiveClient with {user_id} is not activeuser_id (str): The user ID.Raised when the specified client is not active.
ClientDoesNotHaveAccessUser {user_id} does not have access for this APIuser_id (str): The user ID.Raised when the specified client does not have access to the API.
ClientHasNoMoreMinutesUser has no remaining minutesNoneRaised when the user has no remaining minutes for API usage.

Scripted Requests

Scripted requests involve predefined workflows or operations that follow a specific sequence or script. These requests are commonly used in scenarios where the input and expected output are well-defined, such as processing audio based on a predetermined script, executing automated tasks, or handling structured workflows.

Audio Exceptions

ExceptionMessageParametersDescription
MissingAudioParamMissing audio param!NoneRaised when the required audio parameter is missing.
FailedToReadAudioFromURLFailed to read audio from the URLNoneRaised when the server cannot read the audio from the provided URL.
FailedToConvertAudioThe server failed to parse your {audio_format} audioaudio_format (str): The format of the audio that failed conversion.Raised when the server fails to convert the provided audio format.
FailedToUseAudioAn unexpected error occurred while processing the audio. Please check if the audio is valid and it's not corrupted.NoneRaised when an unexpected error occurs while processing the audio.

Authentication Exceptions

ExceptionMessageParametersDescription
NoTokenProvidedNo session token providedNoneRaised when no session token is provided.
ClientIsNotActiveClient with {user_id} is not activeuser_id (str): The user ID.Raised when the specified client is not active.
ClientDoesNotHaveAccessUser {user_id} does not have access for this APIuser_id (str): The user ID.Raised when the specified client does not have access to the API.
UserDoesNotExistCould not find {user_type} IDuser_type (str): The type of user ID.Raised when the specified user does not exist.
InvalidHeaderParameterA valid authorization header is requiredNoneRaised when the authorization header is invalid or missing.