API Error: 500

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

Bug Description
API Error: 500

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.29
  • Feedback ID: ec305ce8-799d-494f-952c-c8acfd7d15e0

Errors

[{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: ENOENT: no such file or directory, uv_spawn 'typescript-language-server'\n    at start (B:/~BUN/root/claude.exe:2160:22112)\n    at async E (B:/~BUN/root/claude.exe:2160:24564)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:24.213Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'typescript-language-server'\n    at spawn (unknown)\n    at spawn (node:child_process:679:35)\n    at spawn (node:child_process:14:39)\n    at start (B:/~BUN/root/claude.exe:2160:20642)\n    at start (B:/~BUN/root/claude.exe:2160:22166)\n    at E (B:/~BUN/root/claude.exe:2160:24564)\n    at E (B:/~BUN/root/claude.exe:2160:25539)\n    at L (B:/~BUN/root/claude.exe:2160:32326)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:24.213Z"},{"error":"Error: Failed to start LSP server plugin:typescript-lsp:typescript: ENOENT: no such file or directory, uv_spawn 'typescript-language-server'\n    at <anonymous> (B:/~BUN/root/claude.exe:2160:32348)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:24.213Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPALQQ75AhfwK2J7ehd\"}\n    at generate (B:/~BUN/root/claude.exe:361:8942)\n    at makeRequest (B:/~BUN/root/claude.exe:378:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:28.237Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPAMqE3FZucQVavvxL3\"}\n    at generate (B:/~BUN/root/claude.exe:361:8942)\n    at makeRequest (B:/~BUN/root/claude.exe:378:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:28.695Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPAPZQKKkFxV5eqPJjh\"}\n    at generate (B:/~BUN/root/claude.exe:361:8942)\n    at makeRequest (B:/~BUN/root/claude.exe:378:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:29.079Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPARFr88riTZV78tteb\"}\n    at generate (B:/~BUN/root/claude.exe:361:8942)\n    at makeRequest (B:/~BUN/root/claude.exe:378:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:29.379Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPAuvGgD2iZb9r4jUpu\"}\n    at generate (B:/~BUN/root/claude.exe:361:8942)\n    at makeRequest (B:/~BUN/root/claude.exe:378:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:36.068Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CXmPBygmipLTyvW37KZ5F\"}\n    at generate (B:/~BUN/root/claude.exe:361:8942)\n    at makeRequest (B:/~BUN/root/claude.exe:378:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-03T15:36:50.512Z"}]

View original on GitHub ↗

12 Comments

Playlistintel · 6 months ago

whats happening? API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"

LemonBF · 6 months ago

+1

grandtheftdisco · 6 months ago

FWIW, changing the model helped me. Was using Opus, but changing to Sonnet got rid of the error.

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/19658
  2. https://github.com/anthropics/claude-code/issues/22764
  3. https://github.com/anthropics/claude-code/issues/16751

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

rickyvadala · 6 months ago

+1

dongnguyenvie · 6 months ago

+1

ThatDragonOverThere · 6 months ago

Confirming - February 4, 2026

Platform: Claude Code CLI, Windows

API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},
"request_id":"req_011CXoMdGXGYDj7v271dsYiA"}
Done (3 tool uses · 0 tokens · 14s)

Note: 0 tokens generated despite 3 tool uses and 14s elapsed. The API accepted the request, started processing, then died server-side.

This is also happening mid-search — even gh search issues calls to report this bug are triggering the same 500 error.

ThatDragonOverThere · 6 months ago

Update: The 500 error is now hitting repeatedly during this same session. Three occurrences in ~5 minutes:

  1. Original error during normal task work
  2. Hit again while running gh search issues to search for this bug
  3. Hit again while a sub-agent was updating a local file to log this bug

The API is unstable right now — not a one-off.

ThatDragonOverThere · 6 months ago

Still Happening — Feb 21, 2026

API Error 500 on a simple text question (no tool use, no large context):

API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011CYNCxUcthioekzShupHFr"}

User asked a straightforward question about feature engineering. Zero tokens generated before the error.

Version: Bun Canary v1.3.9-canary.51, Windows 11, Opus 4.6
Request ID: req_011CYNCxUcthioekzShupHFr

sstklen · 6 months ago

Hey! I ran into a similar pattern in our bug knowledge base and thought this might help.

What's happening: TypeScript Language Server (typescript-language-server) is not installed or not in PATH, causing LSP plugin initialization to fail and triggering cascading API 500 errors

What worked for us:

Install typescript-language-server globally and ensure it's accessible in PATH

Steps:

  1. Install typescript-language-server globally: npm install -g typescript-language-server typescript
  2. Verify installation: typescript-language-server --version
  3. Check PATH includes npm global bin directory
  4. Restart Claude Code application
  5. If using Bun, also try: bun install -g typescript-language-server typescript
  6. For Windows: Ensure npm/bun global bin paths are in system PATH environment variable
# Add to package.json if managing dependencies locally
{
  "devDependencies": {
    "typescript": "^5.0.0",
    "typescript-language-server": "^4.0.0"
  }
}

# Or install globally
npm install -g typescript-language-server typescript

Hope this helps! Let me know if it doesn't match your case — happy to dig deeper. 🦞

_Disclosure: This analysis is from Confucius Debug, an AI-powered community KB for agent bugs. Please verify before applying._

---
<sub>🦞 Confucius Debug — community knowledge base for AI agent bugs. Free to search via MCP.</sub>

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.