claude-code - 💡(How to fix) Fix [BUG] API Error 500 (no body) on Opus 4.7 with 1M context, intermittent across different requests

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…

Error Message

API Error: 500 status code (no body). This is a server-side issue, usually temporary, try again in a moment. If it persists, check status.claude.com.

Couldn't send feedback (server returned 500). If it keeps failing, you can file at https://github.com/anthropics/claude-code/issues instead.

Code Example

API Error: 500 status code (no body). This is a server-side issue, usually temporary, try again in a moment. If it persists, check status.claude.com.

Couldn't send feedback (server returned 500). If it keeps failing, you can file at https://github.com/anthropics/claude-code/issues instead.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Persistent intermittent 500 errors throughout a single session. Roughly 50% failure rate per request. Failures hit different requests rather than the same one looping, so this is not a poisoned tool result or stuck session state. Retries eventually succeed (typically attempt 2 or 3 of 10), then the next turn fails again (10/10) and shows the full API 500 error message. /login reauth noticeably improved the success rate but did not eliminate the failures. The in product /feedback command also returns 500, which is why I'm filing here instead of through feedback. A separate Claude.ai web session briefly wobbled at the same time, suggesting the issue may extend past just the Opus 4.7 1M pool.

What Should Happen?

Requests to Claude Code complete successfully within normal latency. Retries should not be needed for routine requests on a healthy session with low context usage.

Error Messages/Logs

API Error: 500 status code (no body). This is a server-side issue, usually temporary, try again in a moment. If it persists, check status.claude.com.

Couldn't send feedback (server returned 500). If it keeps failing, you can file at https://github.com/anthropics/claude-code/issues instead.

Steps to Reproduce

Not reliably reproducible on demand. The failure correlates with periods when the Opus 4.7 backend pool is strained (see "Additional Information" for related incident history). Approximate setup at time of failure:

Start a Claude Code session on a Claude Max account, default model (Opus 4.7 with 1M context) Work normally, including parallel subagents and MCP tool calls Around 32% context usage, requests begin returning 500 (no body) intermittently Retries succeed after 2 to 3 attempts; failures resume on subsequent turns /feedback also returns 500

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.146

Claude Code Version

2.1.146

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

Using Ghostty

Status page (status.claude.com) showed no incidents at time of failure, but Opus 4.7 has had "Elevated errors" incidents recurringly over the past two weeks (May 20, 19, 18, 14, 12, 8, 7). Likely the same underlying issue not yet crossing the public reporting threshold today. Happy to provide session ID privately if useful for diagnosis. Omitting here for privacy.

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…

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 [BUG] API Error 500 (no body) on Opus 4.7 with 1M context, intermittent across different requests