error - Cognigy Documentation
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Emitted when an asynchronous error occurs during the SDK lifecycle, such as a SIP registration failure, audio playback error, or call error.
Errors thrown by async methods like connect() and startCall() can also be caught using try/catch. The error event captures asynchronous errors that occur outside of direct method calls.
Category
Error
Callback Parameters
| Parameter | Type | Description |
|---|---|---|
error |
Error |
The error object with a descriptive message property. |
Example
client.on('error', (error) => {
console.error('Click To Call SDK error:', error.message);
});
More Information
Last modified on April 21, 2026