GrepBoard/Manuals
605 manuals ·

Claude API 529 overloaded_error: retry and back off

·Tested on Claude API official docs · curl · 2026-10·Test scope ↓·5 steps

Claude API 529 overloaded_error is API-wide overload, not your rate limit. Retry with SDK max_retries and exponential backoff, and log the request-id.

text
{"type": "error", "error": {"type": "overloaded_error", "message": "Overloaded"}}

HTTP 529 overloaded_error means the API is temporarily overloaded. It is not a problem with your request or your usage limits, so there is nothing to fix in the request; retrying with growing delays is the whole response.

[1] Tell 529 apart from 429 first. Side by side, the official errors page says:

Statuserror.typeMeaningResponse
529overloaded_errorAPI temporarily overloaded by high traffic across all usersBack off and retry
429rate_limit_errorYour organization hit a rate limit or monthly spend capWait for retry-after. A spend-cap 429 has no retry-after and keeps failing on retry
500api_errorUnexpected error inside Anthropic's systemsBack off and retry; if it persists, contact support with the request ID

The page also notes that, rarely, a sharp increase in your organization's usage can trigger 429s from acceleration limits. So a 429 right after a sudden traffic jump may be an acceleration limit, and the fix for that is to ramp up traffic gradually. If what you received is a 529, treat it as API-wide overload regardless of timing.

[2] Check the SDK's automatic retries. The official SDK retries transient failures such as connection errors, 429 and 5xx with exponential backoff, twice by default, honoring retry-after when present. The Python SDK docs list 408, 409, 429 and 500 and above as retried, so 529 is included. So if you use an official SDK with default settings for a non-streaming request and still see a 529, it has already failed three times (the first request plus two retries). If you call HTTP directly, set max_retries=0, or got it as a mid-stream error event as in step 4, it may be the first attempt, so add retries yourself.

Raise the count with max_retries.

python
import anthropic client = anthropic.Anthropic(max_retries=5)          # all requestsclient.with_options(max_retries=8).messages.create(  # this request only    model="claude-opus-5-5",    max_tokens=1024,    messages=[{"role": "user", "content": "Hello, Claude"}],)

TypeScript and PHP use maxRetries, Java .maxRetries(), C# MaxRetries, Go option.WithMaxRetries(). 0 turns automatic retries off; if you wrote your own retry loop, keep only one of the two so requests do not multiply.

[3] Catch the failure that survives retries. In the Python SDK, 500 and above surface as anthropic.InternalServerError. The docs recommend catching the SDK's typed classes instead of string-matching messages. In an interactive UI, show "try again shortly"; in a batch job, put the item back in the queue for later. Bulk work that is not urgent can also move to the Message Batches API, which lets you collect results later.

[4] Handle overload in the middle of a stream separately. With streaming, a 200 arrives first and an error can follow as an event, which is the shape shown at the top.

text
event: errordata: {"type": "error", "error": {"type": "overloaded_error", "message": "Overloaded"}}

The docs say error handling in this case does not follow the standard mechanisms. Whether the SDK's automatic retries apply here is not stated, so when the stream emits an error event, discard the partial content and resend the request from the start yourself.

[5] Keep the request ID. Every response carries a request-id header, and error bodies repeat it as request_id. The Python and TypeScript SDKs expose it as _request_id on the response object. Even a fake-key request shows the header:

output
HTTP/2 401request-id: req_...x-should-retry: false{"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"},"request_id":"req_..."}

The 401 also came with x-should-retry: false. The errors page does not describe that header, so what it says on a 529 is unconfirmed. If 529s go on for a long time, check status.claude.com for an incident and include the request ID when you contact support.

For Repeated 529 Overloaded errors in Claude Code, see Fix common Claude Code errors by message. To tell a limit from an outage on 429, see Claude Code 429 and Rate Limit Errors: Usage Limit or Outage?.

#claude#api#529#retry