claude-code - 💡(How to fix) Fix Transient 529 Overloaded API errors abort long-running tasks with no auto-recovery [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60577Fetched 2026-05-20 03:54:57
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

When the Anthropic API returns a transient 529 Overloaded response mid-session, Claude Code surfaces the error and halts the in-flight task. There is no automatic retry, backoff, or resume behavior — the user must manually re-issue the prompt, which is especially disruptive for long-running, multi-step workflows (e.g. /goal-style tasks that span many tool calls).

Error Message

API Error: 529 Overloaded. This is a server-side issue, usually temporary — try again in a moment. If it persists, check status.claude.com.

Root Cause

When the Anthropic API returns a transient 529 Overloaded response mid-session, Claude Code surfaces the error and halts the in-flight task. There is no automatic retry, backoff, or resume behavior — the user must manually re-issue the prompt, which is especially disruptive for long-running, multi-step workflows (e.g. /goal-style tasks that span many tool calls).

Code Example

API Error: 529 Overloaded. This is a server-side issue, usually temporary — try again in a moment. If it persists, check status.claude.com.
RAW_BUFFERClick to expand / collapse

Description

When the Anthropic API returns a transient 529 Overloaded response mid-session, Claude Code surfaces the error and halts the in-flight task. There is no automatic retry, backoff, or resume behavior — the user must manually re-issue the prompt, which is especially disruptive for long-running, multi-step workflows (e.g. /goal-style tasks that span many tool calls).

Observed error

API Error: 529 Overloaded. This is a server-side issue, usually temporary — try again in a moment. If it persists, check status.claude.com.

Steps to reproduce

  1. Start a long-running task in Claude Code that involves many sequential tool calls (e.g. a /goal-style multi-step workflow, large refactor, or extended agent loop).
  2. Wait for the API to return a transient 529 Overloaded (more likely during peak load).
  3. Observe that Claude Code aborts the current turn and returns control to the prompt with no further action.

Expected behavior

Transient 5xx responses (particularly 529) should be treated as retryable. Claude Code should:

  • Retry with exponential backoff (e.g. 1s / 2s / 4s / 8s, capped) for a bounded number of attempts.
  • Preserve task state across the retry so the in-progress goal/loop continues from where it left off rather than discarding context.
  • Only surface the error to the user if retries are exhausted.

Actual behavior

A single 529 immediately terminates the current turn. Any in-progress multi-step task (/goal, agent loop, long tool-call chain) is lost and must be manually restarted, often re-doing significant work.

Impact

  • Long-running tasks are effectively unreliable during periods of elevated API load.
  • Work performed before the error (tool calls, partial edits, gathered context) is not resumed automatically.
  • Users running unattended/autonomous workflows return to find them halted partway through.

Suggested improvements

  1. Add automatic retry with exponential backoff for 429, 503, and 529 responses.
  2. Make the retry policy configurable (max attempts, base delay) via settings.
  3. For multi-step / autonomous tasks, expose a resume mechanism so the loop can continue after a recovered transient error.
  4. Optionally, log retry attempts so users can see that the harness recovered rather than silently stalling.

Environment

  • Claude Code CLI (latest)
  • macOS
  • Errors observed during normal interactive use; no unusual configuration.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Transient 5xx responses (particularly 529) should be treated as retryable. Claude Code should:

  • Retry with exponential backoff (e.g. 1s / 2s / 4s / 8s, capped) for a bounded number of attempts.
  • Preserve task state across the retry so the in-progress goal/loop continues from where it left off rather than discarding context.
  • Only surface the error to the user if retries are exhausted.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Transient 529 Overloaded API errors abort long-running tasks with no auto-recovery [2 comments, 3 participants]