BizKitHub
PUBLIC_CRON_RUN_RATE_LIMITED

Cron monitor request quota of the API key is exhausted.

Z BizKitHub Docs, reference chybových kódů API

Názvy a popisy kódů udržujeme v angličtině.

HTTP 429Veřejné API
Requests to `/api/v1/cron-run/*` have their own fixed hourly quota per API key (separate from the quota of other endpoints). Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers.

Jak to vyřešit

  1. 1

    Send logs in batches (`entries`, up to 100) instead of one request per entry.

  2. 2

    Report short runs with a single `POST /cron-run/record` instead of start + finish.

  3. 3

    Wait until the time in `X-RateLimit-Reset` (Unix seconds) or the `Retry-After` header.

Ukázka odpovědi

API odpoví statusem HTTP 429 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.

application/json
{
  "state": "error",
  "code": 429,
  "message": "Cron monitor request quota of the API key is exhausted.",
  "errorCode": "PUBLIC_CRON_RUN_RATE_LIMITED",
  "hint": "Requests to `/api/v1/cron-run/*` have their own fixed hourly quota per API key (separate from the quota of other endpoints). Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_CRON_RUN_RATE_LIMITED"
}