What does "overloaded_error" (529) mean for a running agent?

“overloaded_error” with HTTP status 529 means the Claude API was temporarily overloaded by high traffic across all users and didn’t take your request. It’s about the API’s capacity, not your account: a 429 rate_limit_error is the one that means your organization hit a limit.

Retry the call. Anthropic’s docs say the official SDK retries transient failures, 5xx server errors included, with exponential backoff, twice by default, and honors the retry-after header when present. max_retries changes that count.

A streamed response can also fail partway. The API may return 200 and then send an error event in the stream with the type overloaded_error, so a call that looked successful can still end in this error, and the handling has to read the stream, not just the status code.

Retry the one failed call, with a delay and a cap. An agent that retries instantly and without a limit adds load to an already overloaded API, which is how a retry storm starts.

Once the SDK’s retries run out, the error reaches your own code, so the agent loop needs a handler for it.

published

sources

keep reading

More on this.

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card