> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/events/recordingfailed.md).

# recordingFailed

Emitted when a recording has failed due to an unexpected error.&#x20;

#### Sample payload

```json
{
  "type": "recordingFailed"
}
```

#### Sample subscription code

```javascript
sambaFrame.on('recordingFailed', (event) => {
  console.log('Recording has failed');
});
```
