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

# error

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.
</Note>

## 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](/click-to-call/sdk/troubleshooting)
* [failed](/click-to-call/sdk/event-reference/failed)
