> 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/server-side-alerts/troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://docs.hypertracker.io/~gitbook/mcp).

# Troubleshooting

Each section lists the likely causes in order of frequency, how to verify each one, and how to resolve it.

<table data-search="false"><thead><tr><th>Symptom</th><th>Most likely cause</th><th>Go to</th></tr></thead><tbody><tr><td>Nothing has ever arrived</td><td>Receiver unreachable, or the wrong ID in <code>webhookEndpointId</code></td><td><a href="#nothing-arrives-at-all">Nothing arrives at all</a></td></tr><tr><td>It worked, then stopped</td><td>Automatic suspension after repeated delivery failures</td><td><a href="#deliveries-stopped-on-their-own">Deliveries stopped on their own</a></td></tr><tr><td>Stopped, but the endpoint looks fine</td><td>Someone paused it</td><td><a href="#deliveries-stopped-and-nothing-looks-broken">Deliveries stopped and nothing looks broken</a></td></tr><tr><td>Every signature fails</td><td>The body was re-serialized before verification</td><td><a href="#the-signature-never-matches">The signature never matches</a></td></tr><tr><td>Events processed twice</td><td>At-least-once delivery, working as designed</td><td><a href="#the-same-event-arrives-twice">The same event arrives twice</a></td></tr><tr><td>More deliveries than events</td><td>Batch splitting and per-address grouping</td><td><a href="#one-occurrence-produces-several-deliveries">One occurrence produces several deliveries</a></td></tr><tr><td>A price alert will not stop</td><td><code>price_crossing</code> has no cooldown</td><td><a href="#a-price-alert-fires-over-and-over">A price alert fires over and over</a></td></tr><tr><td>Usage allowance drains quickly</td><td>An exchange-wide alert rule</td><td><a href="#the-quota-drains-faster-than-expected">Usage allowance drains faster than expected</a></td></tr><tr><td><code>409</code> on delete</td><td>Alert rules still point at the endpoint</td><td><a href="#id-409-conflict-when-deleting-an-endpoint">409 Conflict when deleting an endpoint</a></td></tr><tr><td>Values off in the last digits</td><td>Binary floating-point rounding</td><td><a href="#the-numbers-are-slightly-wrong">The numbers are slightly wrong</a></td></tr><tr><td>Events out of sequence</td><td>Ordering is per alert rule only</td><td><a href="#events-arrive-out-of-order">Events arrive out of order</a></td></tr><tr><td>Parser crashes on a new field</td><td>Strict schema validation</td><td><a href="#a-new-field-breaks-the-parser">A new field breaks the parser</a></td></tr><tr><td>Cannot tell which customer an alert is for</td><td>No custom reference ID exists</td><td><a href="#which-end-customer-does-this-alert-belong-to">Which end customer does this alert belong to</a></td></tr></tbody></table>

### Nothing arrives at all

You created an alert rule and no delivery has ever landed.

| Check                                            | How                                                                                            | Fix                                                                                                                                                                                          |
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Is the receiver publicly reachable over HTTPS?   | `curl -X POST https://yourapp.com/webhooks/hypertracker -d '{}'` from outside your own network | Localhost, private IPs, and self-signed certificates will not work. Use a tunnel while developing                                                                                            |
| Does the alert rule use the correct endpoint ID? | Compare `webhookEndpointId` on the alert rule with the endpoint's `id`                         | The alert rule's `webhookEndpointId` must exactly match the endpoint's `id`. Do not use the alert rule's own `id`. This is the most common setup mistake.                                    |
| Is the alert rule paused?                        | `GET /events/:id`, read `paused`                                                               | `PATCH` it back to `false`                                                                                                                                                                   |
| Is the endpoint paused or suspended?             | `GET /events/endpoints/:id`, read `paused` and `deliveryStatus`                                | See the two sections below                                                                                                                                                                   |
| Are the filters too narrow?                      | Re-read the filter, then widen it temporarily                                                  | All configured filter dimensions combine with AND. For example, a `liquidation` alert rule with `addresses`, `markets`, and `thresholdUsd` matches only liquidations that satisfy all three. |

For `price_crossing` there is one additional cause. A crossing requires the price to move **across** the threshold while the alert rule exists. Touching it is not a crossing, and price history from before you created the alert rule is never replayed. A threshold the market crossed an hour before you set the alert will never fire.

### Deliveries stopped on their own

Almost always an automatic suspension.

A failure is recorded once the per-event retries for that delivery are exhausted. **Ten failures within five minutes suspend the endpoint.** During the cooldown, matching events are skipped. The cooldown backs off exponentially from five minutes up to one hour, and a later real event is used as a half-open probe. One successful delivery clears the failure window and returns the endpoint to `healthy`.

{% code overflow="wrap" %}

```
curl "https://ht-api.coinmarketman.com/api/external/events/endpoints/23" \
  -H "Authorization: Bearer <API_KEY>"
```

{% endcode %}

Read `deliveryStatus`, `suspendedUntil`, `lastDeliveryFailureAt`, and `lastDeliveryFailureReason`. The failure reason usually names the cause outright: a timeout, a TLS error, a 500 from your side.

Two consequences:

* **The gap is permanent:** Events skipped during a suspension are not replayed, and there is no endpoint for fetching past deliveries. When the endpoint recovers you resume from live traffic
* **Recovery is automatic; the cause is not:** The system probes and recovers on its own, and will keep re-suspending until the underlying problem is resolved

### Deliveries stopped and nothing looks broken

Check whether someone paused it on purpose. `paused: true` and `deliveryStatus: "suspended"` are different states with different owners.

Automatic recovery only applies to failures the system detected itself. A pause you set stays set until you send `paused: false`. Nothing will silently turn it back on.

### The signature never matches

In order of frequency:

1. **The body was re-**&#x73;erialized **before verification:** Compute the HMAC over the exact raw bytes you received. `JSON.parse` followed by `JSON.stringify` changes whitespace and key order and guarantees a mismatch
2. **A body parser consumed the raw bytes:** `express.json()` leaves you an object, not the original buffer. Use `express.raw({ type: "application/json" })` on the webhook route. In Flask, read `request.get_data(cache=False)` rather than `request.json`
3. **The `v1=` prefix was not stripped:** The header is `v1=` followed by 64 lowercase hex characters. Compare only the hex
4. **No secret is configured:** An endpoint created without a `secretKey` gets no `x-webhook-signature` header at all. `PATCH` the endpoint to add one
5. **The secret does not match:** Verify against the value you registered. When rotating, accept both the old and the new secret during a short overlap window

Compare in constant time (`timingSafeEqual`, `hmac.compare_digest`). A plain string comparison is a timing oracle.

### The same event arrives twice

This is expected. Delivery is at-least-once by design.

A timeout is an unknown outcome: the request may have been processed even though no response was received, so it is retried. Store the complete event in durable storage using `deliveryId` as a unique key before returning `2xx`. If the same `deliveryId` already exists, treat it as a safe duplicate and do not repeat any side effects. If storage fails, return `503` so HyperTracker can retry.

Return `2xx` for a safely stored duplicate. Do not return an error merely because the `deliveryId` already exists. Error responses are recorded as delivery failures and count toward suspension.

### One occurrence produces several deliveries

This is expected. Each successful webhook delivery uses one usage token, so it affects your plan allowance as well as your processing logic.

* `position_activity` and `twap_execution` group fills by alert rule, address, and coin, and large batches are split to bound payload size
* A different coin, or fills that land moments apart, arrive as separate messages
* `ledger_update` produces one delivery per unique affected address
* A single TWAP order fills in many small slices, and each slice or small group of slices is its own `twap_execution` delivery

Do not assume one delivery per source occurrence, either in your processing logic or when estimating usage.

### A price alert fires over and over

There is no cooldown. `price_crossing` fires on **every** crossing for as long as the alert rule exists, so a price oscillating around your threshold produces a delivery each time it crosses.

For a one-shot alert, pause or delete the alert rule when the first delivery arrives:

{% code overflow="wrap" expandable="true" %}

```
curl -X PATCH "https://ht-api.coinmarketman.com/api/external/events/105" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{ "paused": true }'
```

{% endcode %}

Do it from your webhook handler, off the request path, after you have returned 2xx.

### Usage allowance drains faster than expected

Each successful webhook delivery uses one usage token from your plan allowance. Requests to the Server-Side Alerts API use the same allowance. The usual causes, in order:

1. **An exchange-wide alert rule:** `liquidation`, `ledger_update`, and `twap_lifecycle` with no addresses watch the entire exchange, and `large_market_order` always does. These can be very high volume
2. **Batch splitting:** One burst of activity can be many deliveries, as above
3. **A threshold set too low:** `large_market_order` accepts a minimum of `50000`, and at that minimum it is a busy feed
4. **Duplicate alert rules:** Several alert rules matching the same activity each produce their own delivery. Run `GET /events` and look for overlap

Failed attempts, retries, and events skipped while paused or suspended are not billed. Filter narrowly first, measure the real rate, then widen.

### 409 Conflict when deleting an endpoint

Alert rules still point at the endpoint.

{% code overflow="wrap" %}

```
{ "message": "Webhook endpoint is used by existing signals" }
```

{% endcode %}

List them and delete them first:

{% code overflow="wrap" expandable="true" %}

```
curl "https://ht-api.coinmarketman.com/api/external/events?webhookEndpointId=23" \
  -H "Authorization: Bearer <API_KEY>"
```

{% endcode %}

If you only want to stop deliveries for a while, `PATCH` the endpoint to `paused: true` instead of deleting it. That keeps every alert rule intact.

“Signals” in that response is legacy internal wording for existing alert rules.

### The numbers are slightly wrong

Prices, sizes, amounts, thresholds, notionals, fees, and PnL are decimal strings. Parsing a value such as "65000.10" with binary floating-point can introduce small rounding differences, which may affect equality checks or comparisons close to a threshold.

Use a decimal or fixed-point type, and retain the string form when storing raw payloads.

### Events arrive out of order

Deliveries for one alert rule are processed sequentially within a consumed batch. Different alert rules are processed concurrently. There is no global ordering across events, markets, addresses, or endpoints.

For chronological order, sort by the timestamps in the payload (`occurredAt`, `eventTime`, `time`) and by the source IDs on fills (`oid`, `tid`, `hash`). Do not sort by arrival.

### A new field breaks the parser

Fill objects are source-rich records, and fields are added over time. Treat additive JSON fields as backward compatible: validate only what your integration consumes and ignore the rest.

Exhaustive rejection of unknown keys, schema validation with `additionalProperties: false`, or a language binding that throws on unmapped fields will break on the next additive change. An unknown `eventType` should also be handled gracefully rather than crashing the receiver.

### Which end customer does this alert belong to

There is no field for attaching your own reference ID to an alert rule, so the delivery cannot carry your customer ID.

Keep a lookup from each alert rule’s ID — the `eventId` in its webhook deliveries — to your customer ID. Each alert rule should map to one customer, while one customer may have several alert rules.

First verify `x-webhook-signature` against the raw request body using the endpoint secret. Only after verification succeeds should you parse the body and route using its `eventId`.

Treat `x-event-id` as a convenience header, not as the trusted routing source. If you use it, compare it with the verified body’s `eventId`. If they differ, ignore the header, use the verified body’s value, and investigate the mismatch. Never allow the header to override the signed body.

If a customer tracks more than 1,000 wallets, split them across several alert rules and map all of those rule IDs back to the same customer.

Where many customers want the same exchange-wide feed, run one alert rule and fan it out inside your own system. One successful HyperTracker delivery uses one usage token regardless of how many customers you notify internally.

### Reference

#### Response codes you return

| Code                              | Effect                                                                                                                      |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `2xx`                             | Delivered. Return this only after the complete event has been stored successfully. Process the stored event asynchronously. |
| `408`, `409`, `425`, `429`, `5xx` | Retryable. The delivery is retried with backoff. A valid `Retry-After` extends it up to the configured maximum              |
| Anything else                     | Not retried. The delivery is lost                                                                                           |

Network transport failures are retried as well. Repeated failures lead to suspension, so error codes should be chosen deliberately rather than left to framework defaults.

#### Codes the API returns to you

| Code  | When                                                                                                                                                                                  |
| ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `204` | Successful `DELETE`. An empty body is the success signal                                                                                                                              |
| `409` | `DELETE` on an endpoint that still has alert rules                                                                                                                                    |
| `4xx` | Invalid filter values, an address list on a type that does not support one, a `thresholdUsd` below `50000` on `large_market_order`, a threshold that is not a positive decimal string |

Changing `eventType` on an existing alert rule revalidates the whole alert rule against the new type's rules, so a `PATCH` that changes only the type can be rejected because of filters that were valid under the previous type.

#### Endpoint health fields

| Field                       | Meaning                                                       |
| --------------------------- | ------------------------------------------------------------- |
| `paused`                    | You set this. Manual, reversible, never cleared automatically |
| `deliveryStatus`            | `healthy` or `suspended`. Set by the delivery health system   |
| `suspendedUntil`            | When the current cooldown ends. `null` when healthy           |
| `lastDeliveryFailureAt`     | Timestamp of the most recent recorded failure                 |
| `lastDeliveryFailureReason` | Why it failed. Start here when investigating a gap            |

#### Acceptance tests before launch

1. A valid signature with a new `deliveryId` is accepted exactly once
2. The same `deliveryId` delivered twice does not repeat side effects
3. An invalid signature is rejected
4. An unknown `eventType` or an unfamiliar field in `data` does not crash the receiver
5. Decimal strings survive round-trip with exact value
6. The receiver returns within its latency budget under load
7. Secret rotation and endpoint pause/resume have both been exercised

#### Security

Use HTTPS. Store endpoint secrets in a secrets manager. Never log API keys, signing secrets, or full sensitive payloads. Read the body with a strict size limit before any other processing.

### Known limitations

Current behavior. Report any of these that block your integration.

<table data-search="false"><thead><tr><th>Limitation</th><th>Consequence</th></tr></thead><tbody><tr><td>No custom reference ID on an alert rule</td><td>Routing to an end customer has to go through <code>eventId</code></td></tr><tr><td>No delivery history endpoint</td><td>A delivery your receiver dropped cannot be fetched again</td></tr><tr><td>Suspended events are not replayed</td><td>A suspension window is a permanent gap in your data</td></tr><tr><td><code>price_crossing</code> does not name its price feed</td><td>You cannot tell from the payload which source the crossing was measured against</td></tr><tr><td><code>price_crossing</code> has no cooldown or one-shot mode</td><td>You pause or delete the alert rule yourself</td></tr><tr><td><code>large_market_order</code> cannot be scoped to wallets</td><td>It is exchange-wide by design</td></tr><tr><td><code>position_activity</code> is raw, not interpreted</td><td>You get the fill as the exchange recorded it, not "opened" or "closed"</td></tr><tr><td>Legacy "signal" wording appears in some messages</td><td>Same thing as an alert rule in this documentation</td></tr></tbody></table>

### Support

Provide your `consumerId`, the endpoint `id`, the alert rule `id`, and a `deliveryId` if one is available. If no delivery has ever arrived, state that instead of supplying a `deliveryId`. These values help Support identify the configuration and trace a specific delivery when one exists.


---

# 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/server-side-alerts/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.
