[Bug] Anthropic API Error: 500 Internal Server Error causing CLI freeze

Status Fixed / completed
Reported on v2.1.17
Maintainer reply None cached
Activity 5 comments · opened Jan 22, 2026 · closed Feb 25, 2026

Bug Description
Multiple API Errors: API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server
error"},"request_id":"req_011CXPBzeKX2V6jEzvLVZ5kv"}
CLI Freezing every session

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.17
  • Feedback ID: 1a3b3bff-ed57-45ee-ac99-cbc1b902560d

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at Module.readdirSync (node:fs:1583:26)\n    at file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at fX (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n    at Object.readdirSync (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at C01 (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n    at file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4279\n    at q (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n    at Ih2 (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n    at file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n    at q (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-01-22T22:15:22.061Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/wasifkamruddin/.claude/skills'\n    at Module.readdirSync (node:fs:1583:26)\n    at file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at fX (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n    at Object.readdirSync (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at C01 (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n    at file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4322\n    at q (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n    at Ih2 (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n    at file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n    at q (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-01-22T22:15:22.061Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXPBzeKX2V6jEzvLVZ5kv\"}\n    at e7.generate (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:151:37646)\n    at XR.makeStatusError (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:168:2195)\n    at XR.makeRequest (file:///Users/wasifkamruddin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:168:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-01-22T22:16:58.822Z"}]

View original on GitHub ↗

5 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/20186
  2. https://github.com/anthropics/claude-code/issues/20185
  3. https://github.com/anthropics/claude-code/issues/20180

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

coygeek · 8 months ago

npx @anthropic-ai/claude-code@2.1.14

Works as a workaround.
NPX doesnt override your current installation.

VirtualZardoz · 8 months ago

Same issue here. Persistent 500 on all prompts across all Claude Code instances.

Platform: linux (WSL2 Ubuntu on Windows 11)
Terminals: VS Code (WSL), standalone Ubuntu terminals
Version: 2.1.29
Feedback ID: 0443f0b0-3c46-41be-85ab-1f89c2f1c469
Region: Europe (Switzerland)
Request IDs:

req_011CXmPLB5bY9dNcUbDJ1xsx
req_011CXmPU4D5Ljza3EiibKpDf
req_011CXmPZCZzwCiSehiuweT6Y

stevenpetryk · 7 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] · 7 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.