> For the complete documentation index, see [llms.txt](https://docs.hypertracker.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hypertracker.io/websocket-streams/troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://docs.hypertracker.io/~gitbook/mcp).

# Troubleshooting

## Troubleshooting

### Connection and authentication

| Symptom                     | Cause                                                      | Resolution                                                                                                                                                                                            |
| --------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Bad jwt token`             | Invalid key                                                | Use a valid API key from the API Dashboard.                                                                                                                                                           |
| Immediate close             | Missing key or unsupported key location                    | Plain WebSocket servers use `Authorization`. SDK clients, browsers, and SSE use `connect.data.token`.                                                                                                 |
| Every subscribe is refused  | Channel authorization failure or incomplete authentication | Confirm `connect` succeeded and check the channel name. Plan and limit errors (`1080` to `1088`) are explained in [Getting Started](https://docs.hypertracker.io/order-book-data/getting-started.md). |
| No plain-WebSocket activity | `connect` was not first, or pings lack replies             | Send `connect` first. Reply `{}` to `{}`.                                                                                                                                                             |

### Close codes

| Code   | Meaning                   | Resolution                                              |
| ------ | ------------------------- | ------------------------------------------------------- |
| `3008` | Slow client               | Narrow filters and process faster.                      |
| `3010` | Insufficient replay state | Subscribe fresh, live.                                  |
| `1006` | Abnormal close            | Reconnect with increasing backoff. Replay if available. |

#### `3008 slow`

Do not perform slow work in the receive loop. Hand events to a queue or worker. A larger buffer only delays the problem. A near-complete feed cannot be delivered to one live client. Use REST for that use case.

For `orders:feed`, narrow the required `address` filter further with `coin` or `status`.

### No data

1. Confirm the subscribe reply has no `error`.
2. Check the channel: `rooms:fills`, `rooms:misc_events`, `rooms:twaps`, or `orders:feed`.
3. Remove restrictive filters, then add them back.
4. Match text values exactly, including `"true"`.
5. Expect quiet periods on TWAPs and parts of account events.

### Replay and duplicates

`recovered: false` means the replay window expired or epoch changed. Filters do not extend it. Use REST history for larger gaps.

Duplicates are expected, especially after reconnects. Discard an event when its `id` was processed already. All IDs are text. Order IDs are opaque.

### SSE

| Symptom                 | Resolution                                                  |
| ----------------------- | ----------------------------------------------------------- |
| Subscribes fail in Node | Set an absolute `emulationEndpoint`.                        |
| Browser SSE returns 401 | Use `connect.data.token`; browsers cannot send SSE headers. |

When reporting an issue, include channel, SDK and version or plain WebSocket, transport, filter, close code and message, and whether connect succeeded.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hypertracker.io/websocket-streams/troubleshooting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
