spend_cap_exceeded
The project's hard cap would be breached
HTTP 402spend_cap_exceeded
You set a cap and this send would cross it, so it was refused.
Why it happens
- Normal traffic growth past a cap set earlier.
- A loop in your own code sending far more than intended, which is what the cap is for.
How to fix it
- Look at the logs before raising the cap. A cap that fires is usually telling you something true.
- Raise it in the console under the project when the traffic is real. A cap you enforce is the only kind that means anything.
Is it worth retrying?
Only after you change something. Retrying as-is will fail again.
What the response looks like
HTTP/1.1 402
Content-Type: application/json
Woyra-Request-Id: req_01J...
{
"error": {
"code": "spend_cap_exceeded",
"message": "…",
"doc_url": "https://docs.woyra.io/errors/spend_cap_exceeded",
"param": null,
"request_id": "req_01J..."
}
}