[Bug] Anthropic API Error: 500 Internal Server Error during multiple planning iterations followed by error in compaction
Status Fixed / completed
Reported on v2.1.2
Maintainer reply None cached
Activity 6 comments · opened Jan 9, 2026 · closed Feb 25, 2026
Bug Description
Persistent API Error: 500 when doing several planning iterations: API Error: 500 {"type":"error","error":{"type":"api_error","
message":"Internal server
error"},"request_id":"req_011CWwJthqeiwqbHGcAkELDh"}
How to reproduce:
Run several iterations of the plan with long messages and adjustments to the plan. On n'th iteration, Claude throws an error and can't compact.
<img width="1194" height="1450" alt="Image" src="https://github.com/user-attachments/assets/f9139050-38ec-42f2-91cd-f2a296c0ac56" />
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.1.2
- Feedback ID: f9eafc1e-d663-4fd1-afed-cabe84830e29
Errors
[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at $OT (/$bunfs/root/claude:2013:23427)\n at async <anonymous> (/$bunfs/root/claude:5009:878)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T01:12:01.098Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.1.2 (expected in multi-process scenarios)\n at HQR (/$bunfs/root/claude:2960:2165)\n at MKA (/$bunfs/root/claude:2960:1885)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T01:12:01.457Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at $OT (/$bunfs/root/claude:2013:23427)\n at async W (/$bunfs/root/claude:2964:6838)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T01:12:07.332Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at $OT (/$bunfs/root/claude:2013:23427)\n at async J (/$bunfs/root/claude:2964:7354)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T01:12:07.332Z"},{"error":"SyntaxError: JSON Parse error: Property name must be a string literal\n at <parse> (:0)\n at parse (unknown)\n at <anonymous> (/$bunfs/root/claude:78:708)\n at A (/$bunfs/root/claude:11:7245)\n at Le7 (/$bunfs/root/claude:2992:13602)\n at async WKB (/$bunfs/root/claude:2992:16388)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T01:12:07.351Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:528)\n at z2 (/$bunfs/root/claude:11:34141)\n at readFileSync (/$bunfs/root/claude:12:487)\n at Xb_ (/$bunfs/root/claude:4742:23129)\n at call (/$bunfs/root/claude:1622:945)\n at call (/$bunfs/root/claude:1618:6420)\n at X_8 (/$bunfs/root/claude:3296:27264)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T01:19:14.230Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:528)\n at z2 (/$bunfs/root/claude:11:34141)\n at readFileSync (/$bunfs/root/claude:12:487)\n at Xb_ (/$bunfs/root/claude:4742:23129)\n at call (/$bunfs/root/claude:1622:945)\n at call (/$bunfs/root/claude:1618:6420)\n at X_8 (/$bunfs/root/claude:3296:27264)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T01:19:15.067Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n at io7 (/$bunfs/root/claude:2958:28008)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T02:24:48.581Z"},{"error":"Error: Failed to fetch version from latest: Error: ECONNREFUSED\n at io7 (/$bunfs/root/claude:2958:28063)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T02:24:48.582Z"},{"error":"Error: 1P event logging: 3 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:212:2077)\n at async doExport (/$bunfs/root/claude:212:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T02:24:53.585Z"},{"error":"Error: {\"message\":\"Failed to export 3 events\",\"originalLine\":\"212\",\"originalColumn\":\"1336\",\"line\":\"212\",\"column\":\"1336\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 3 events\\n at doExport (/$bunfs/root/claude:212:1336)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1765:25028)\n at <anonymous> (/$bunfs/root/claude:206:38554)\n at sJD (/$bunfs/root/claude:206:39098)\n at <anonymous> (/$bunfs/root/claude:207:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-09T02:24:53.586Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONN
Note: Error logs were truncated.
6 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This only happens in plan mode which seems to be adjusted with recent updates
Also adding that this probably happens because on many (5x iterations on the plan) compaction fails from some reason
<img width="1736" height="442" alt="Image" src="https://github.com/user-attachments/assets/396f216d-8bed-402e-bddc-1a79454aaaea" />
Bug server, juste wait and retry. take a coffee.
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.
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.