Sonnet and Opus ClaudecodeCLI: API Error: 500 {"type":"error","error":{"type":"api_error","...

Status Fixed / completed
Reported on v2.0.76
Maintainer reply None cached
Activity 6 comments · opened Feb 3, 2026 · closed Feb 25, 2026

Bug Description
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server
error"},"request_id":"req_011CXmPgjkveNcWyC92qragY"}\
\
it's sonnet and opus :(

Environment Info

  • Platform: darwin
  • Terminal: windsurf
  • Version: 2.0.76
  • Feedback ID: c80c941b-a917-4dda-a220-4831ad3f2a9a

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:724)\n    at sW (/$bunfs/root/claude:11:8463)\n    at readSync (/$bunfs/root/claude:12:627)\n    at CX (/$bunfs/root/claude:4700:113)\n    at Th (/$bunfs/root/claude:4702:206)\n    at vo7 (/$bunfs/root/claude:2164:6561)\n    at vo7 (/$bunfs/root/claude:2164:7447)\n    at J (/$bunfs/root/claude:2164:5766)\n    at J (/$bunfs/root/claude:2164:6062)","timestamp":"2026-02-03T15:11:43.029Z"},{"error":"Error\n    at readFileSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:500)\n    at sW (/$bunfs/root/claude:11:8463)\n    at readFileSync (/$bunfs/root/claude:12:465)\n    at Th (/$bunfs/root/claude:4702:231)\n    at vo7 (/$bunfs/root/claude:2164:6561)\n    at vo7 (/$bunfs/root/claude:2164:7447)\n    at J (/$bunfs/root/claude:2164:5766)\n    at J (/$bunfs/root/claude:2164:6062)\n    at <anonymous> (/$bunfs/root/claude:2164:6095)","timestamp":"2026-02-03T15:11:43.037Z"},{"error":"MaxFileReadTokenExceededError: File content (26834 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Bw_ (/$bunfs/root/claude:957:12204)\n    at async call (/$bunfs/root/claude:966:1005)\n    at async Qo7 (/$bunfs/root/claude:2142:17437)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:21:37.164Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPgjkveNcWyC92qragY\"}\n    at generate (/$bunfs/root/claude:454:11342)\n    at makeRequest (/$bunfs/root/claude:801:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:43:22.178Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPkobiLsCtBkEPfVgQM\"}\n    at generate (/$bunfs/root/claude:454:11342)\n    at makeRequest (/$bunfs/root/claude:801:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:44:17.591Z"}]

View original on GitHub ↗

6 Comments

nigellee · 6 months ago

Haiku also

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/22579
  2. https://github.com/anthropics/claude-code/issues/22767
  3. https://github.com/anthropics/claude-code/issues/22786

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

mattsilv · 6 months ago

<img width="994" height="419" alt="Image" src="https://github.com/user-attachments/assets/9cc74f4d-b1f1-4105-9b85-02391d7df4fb" />

wagabondpets · 6 months ago
stevenpetryk · 6 months ago

Hi folks, thanks for reporting this. These 500 errors were caused by transient API outages on the Anthropic side — not a bug in Claude Code itself. The API is currently healthy, so I'm closing this out. If you're still experiencing 500 errors, you can check the API status at https://status.anthropic.com, and if the issue persists while the status page is green, please open a new issue with your request ID and we'll investigate.

github-actions[bot] · 5 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.