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

# Recording Error

> The recording error event

If an error occurs during recording, or before a recording can be started, a `recording.error` event may be emitted. You may still receive a `recording.started` event, or ` recording.ready-to-download` event, depending on when the error was emitted during the recording lifecycle.

## Common fields

<ParamField body="version" type="string">
  Represents the version of the event. Uses semantic versioning to inform a consumer if the payload has introduced any breaking changes.
</ParamField>

<ParamField body="type" type="string">
  Represents the type of the event described in the payload.
</ParamField>

<ParamField body="id" type="string">
  An identifier representing this specific event.
</ParamField>

<ParamField body="payload" type="object">
  An object representing the event, whose fields are described below.
</ParamField>

<ParamField body="event_ts" type="number">
  Documenting when the webhook itself was sent. This timestamp is different than the time of the event the webhook describes.
</ParamField>

## Payload

<ParamField body="action" type="string">
  A string describing the event that was emitted.
</ParamField>

<ParamField body="error_msg" type="string">
  The error message returned.
</ParamField>

<ParamField body="instance_id" type="string">
  The recording instance ID that was passed into the start recording command.
</ParamField>

<ParamField body="room_name" type="string">
  The name of the room where the recording was made.
</ParamField>

<ParamField body="timestamp" type="integer">
  The Unix epoch time in seconds representing when the error was emitted.
</ParamField>

```json theme={null}
{
  "version": "1.0.0",
  "type": "recording.error",
  "id": "rec-err-c3df927c-f738-4471-a2b7-066fa7e95a6b-1693402871",
  "payload": {
    "action": "cloud-recording-error",
    "error_msg": "cloud-recording-error: Error fetching STS credentials",
    "instance_id": "c3df927c-f738-4471-a2b7-066fa7e95a6b",
    "room_name": "iM5wNQvwtK4980eP049T",
    "timestamp": "1693402871"
  },
  "event_ts": 1693402871.203
}
```
