> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# error

> The error event fires on asynchronous SDK errors such as SIP registration failures or audio playback issues.

Emitted when an asynchronous error occurs during the SDK lifecycle, such as a SIP registration failure, audio playback error, or call error.

> [!NOTE]
>
> 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

```typescript theme={null}
client.on('error', (error) => {
  console.error('Click To Call SDK error:', error.message);
});
```

## More Information

* [Troubleshooting](https://docs-classic.cognigy.com/click-to-call/sdk/troubleshooting.md)
* [failed](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/failed.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.