INTERNAL_SERVER_ERROR | An internal server error occurred while processing the request. | Retry the connection. If the issue persists, contact Deepgram Support with your request_id. |
CLIENT_MESSAGE_TIMEOUT | The server waited too long for a WebSocket message from the client. | Send messages (audio or KeepAlive) within the expected timeframe. Check your WebSocket connection for network issues. |
UNPARSABLE_CLIENT_MESSAGE | A message from the client could not be deserialized according to the expected schema. | Verify that every message conforms to the Voice Agent API schema. Check for malformed JSON or incorrect message types. |
NON_SETTINGS_MESSAGE_BEFORE_SETTINGS | The client sent a message on the WebSocket before sending a Settings message. | Always send a Settings message as the first message after the WebSocket opens, before sending any other message. |
SETTINGS_ALREADY_APPLIED | A Settings message arrived after settings were already established. | Send only one Settings message per session. To change settings, close the connection and open a new one. |
INVALID_SETTINGS | The Settings message parsed but contained invalid values. | Review the fields in your Settings message. See Configure the Voice Agent. |
FAILED_TO_START_LISTENING | The server failed to open the listen (speech-to-text) connection. | Retry the connection. If the issue persists, verify your account has access to Deepgram’s speech-to-text service and contact Deepgram Support. |
ASR_CONNECTION_CLOSED | The speech-to-text connection closed unexpectedly. | Retry the connection. This is usually transient. If it persists, contact Deepgram Support with your request_id. |
ASR_DRIVER_TIMEOUT | No speech-to-text transcript arrived within the expected timeout. | Check that you are sending valid audio data in the correct format. Retry the connection if the issue persists. |
USER_AUDIO_FORMAT | The user audio did not match the format the client declared. | Match the encoding and sample rate in your Settings message to the audio you stream. See Media Inputs & Outputs. |
FAILED_TO_SPEAK | The agent could not speak after exhausting all retries and fallbacks. | Review your speak provider configuration and error messages. Always specify a fallback speak provider to survive individual provider outages. |
SERVER_GOING_AWAY | The server running this agent session is shutting down. | Reconnect to start a new session. This usually means routine server maintenance. |
NON_EXISTENT_FUNCTION_CALLED | A function call referenced a function that does not exist. | Verify that every function referenced in your agent configuration is defined and registered. |
AGENT_ID_NOT_SUPPORTED | Agent ID is not supported in the current server configuration. | Authenticate the project. Self-hosted builds do not support Agent ID in unauthenticated mode. |
INVALID_AGENT_ID | The Agent ID is invalid. | Verify the Agent ID exists and the format is correct. Check the Deepgram console for valid Agent IDs. |
FAILED_TO_THINK | The agent could not produce an LLM response after exhausting all retries and fallbacks. | Review your think provider configuration and error messages. Always specify a fallback think provider to survive individual provider outages. |