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

# Error Handling

> WebSocket error messages and recovery.

## Error format

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "type": "error",
  "timestamp": "2025-01-20T10:00:00Z",
  "data": {
    "message": "Invalid token"
  }
}
```

## Error messages

| Error                             | Cause                             |
| --------------------------------- | --------------------------------- |
| `Missing token`                   | No token in query string          |
| `Invalid token`                   | Token invalid or expired          |
| `Web integration is not enabled`  | Integration disabled in dashboard |
| `Origin not allowed`              | Domain not in allowed origins     |
| `Init message not received`       | Didn't send `initialize` message  |
| `Multiple init messages received` | Sent `initialize` more than once  |
| `Too large message`               | Message exceeds size limit        |

## Recovery

* **Token errors**: Generate new token, reconnect
* **Config errors**: Check settings in dashboard
* **Connection lost**: Reconnect with exponential backoff (1s → 2s → 4s, max 30s)
