[BUG] API Error: 500
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Subject: Repeated API 500 errors during Claude Code session (~6 times in 1 hour)
Error details:
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011CYV91mDgCa37yiCzF6PBX"}
Context:
- Using Claude Code CLI (model: claude-opus-4-6)
- During a long session with multiple sub-agent (Task tool) invocations
- The 500 errors occur approximately every 10 minutes, ~6 times in the last hour
- Previous request_id with same issue: req_011CYV7mpHxmEyezX4xehjos
- The errors seem to happen more frequently when launching sub-agents (Task tool with general-purpose type)
- Each time, the user has to restart/resume the conversation flow manually
Impact: Significant workflow disruption - each crash loses sub-agent context and requires manual recovery.
What Should Happen?
Better if don't avec Error 500
Error Messages/Logs
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011CYV91mDgCa37yiCzF6PBX"}
Steps to Reproduce
appear randomly when i ask a question to claude Code
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.56
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗