OriginChainDB
Errors

429 - rate limited (per-token cap)

← Errors examples

What happened

The request exceeded an existing request budget. Services sharing the same credential may contribute to the same limit.

Wait before making another requestCheck the stored outcome before repeating any write whose result is uncertain.
  1. Read the retry guidanceInspect Retry-After and the reported rate limit.
  2. Reduce request pressureWait and lower concurrency or request frequency.
  3. Retry within a limitUse bounded backoff for reads; reconcile uncertain writes first.
  4. Check recoveryConfirm requests succeed without continuing a tight retry loop.

Request that triggers it

Any request after the per-token cap is hit. -i shows the headers.

curl -i -X POST "https://$OC_HOST/v1/tenants/$OC_TENANT/sql" \
  -H "Authorization: Bearer $OC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"sql": "SELECT id FROM shop.products LIMIT 1"}'

Read the response

HTTP/1.1 429 Too Many Requests
Retry-After: 7
Content-Type: application/json

{
  "error": "rate_limited",
  "message": "API key has exceeded its per-second request quota",
  "retry": true,
  "retry_after_seconds": 7
}

Fix the request

  1. Read Retry-After or the retry delay in the response.
  2. Wait before a bounded retry.
  3. Reduce request concurrency or batch supported operations.
  4. Review the configured quota if the workload regularly exceeds it.

Keep in mind: For uncertain writes, reconcile the previous outcome before retrying. Do not create extra credentials to bypass the limit.

Common causes

  • Backfill script with no per-request delay.
  • One token shared across many services that each assume they have the full budget.
  • A retry loop that doesn't honour Retry-After and amplifies the spike.
  • Multiple replicas of a worker that all woke up after a deploy and started together.
  • A frontend that fires a fetch per keystroke instead of debouncing.

Continue

See error handling and retries, or return to error examples.

© 2026 Silicoyn Technologies Pvt Ltd

On this page