anomaly: The stream exceeded its anomaly envelope
The stream's spend in a window went over the anomalyEnvelope set when it opened (maxUnitsPerWindow, or maxUnitsPerRequest for a single request). The stream is stopped for good.
What to do
- Look at what drove the spike before opening a new stream.
- Open a new stream, with a wider envelope if the load is expected.
On the wire
HTTP 409, error type halted.
A client that does not send Dynamo-Error-Detail: 1 gets the same body without errorDetail, except on the payment authorization and receipt routes and the test-fixture run route (POST /owner/v1/test-fixtures/streams/{id}/run), which send it to every client. The detailed body:
{
"error": "halted",
"reason": "anomaly",
"streamId": "stm_…",
"detail": "…",
"errorDetail": {
"type": "halted",
"code": "anomaly",
"message": "…",
"param": null,
"doc_url": "…/errors/anomaly.md",
"fix": "the stream exceeded its anomaly envelope and is stopped for good; open a new stream"
}
}
See all error codes.