[Bug] Intermittent API 500 error with version fetch/network failures and file read errors in Claude Code 2.1.104 on macOS
Resolved 💬 4 comments Opened Apr 13, 2026 by jykim632 Closed Apr 13, 2026
Bug Description
Claude Code intermittently throws an API 500 error:
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca21qwZGbL4Wtyp59Q4nS"}
In the same timeframe, multiple related errors were also recorded, including:
- lock acquisition failures during multi-process execution
- timeouts / connection failures when fetching the latest release metadata
- event logging export failures
EISDIRerrors when attempting to read directoriesMaxFileReadTokenExceededErrorwhen reading large files
The issue occurred while using Claude Code in a tmux session on macOS.
Environment Info
- Platform: darwin
- Terminal: tmux
- Claude Code Version: 2.1.104
- Feedback ID:
dfb4d25d-0dac-4ce1-8753-66ab3d8e01c2
Errors
[
{
"error": "Error: NON-FATAL: Lock acquisition failed for /Users/jyk/.local/share/claude/versions/2.1.104 (expected in multi-process scenarios)\n at Tc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n at Se6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-12T08:44:35.359Z"
},
{
"error": "Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at EU1 (/$bunfs/root/src/entrypoints/cli.js:2834:5253)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-12T23:33:52.476Z"
},
{
"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 EU1 (/$bunfs/root/src/entrypoints/cli.js:2834:5253)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-12T23:50:44.230Z"
},
{
"error": "Error: 1P event logging: 1 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:422:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:422:1516)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-12T23:50:44.229Z"
},
{
"error": "Error: 1P event logging: 5 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:422:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:422:1516)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-12T23:50:58.007Z"
},
{
"error": "Error: EISDIR: illegal operation on a directory, read '/Users/jyk/solbox/code/cugumi/apps/web/src/pages/studio'\n at G1H (/$bunfs/root/src/entrypoints/cli.js:3942:15399)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-13T05:19:41.409Z"
},
{
"error": "Error: EISDIR: illegal operation on a directory, read '/Users/jyk/solbox/code/cugumi/apps/web/src/routes'\n at G1H (/$bunfs/root/src/entrypoints/cli.js:3942:15399)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-13T05:28:20.561Z"
},
{
"error": "MaxFileReadTokenExceededError: File content (12720 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at kY7 (/$bunfs/root/src/entrypoints/cli.js:4449:12671)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-13T05:21:39.789Z"
},
{
"error": "MaxFileReadTokenExceededError: File content (42515 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at kY7 (/$bunfs/root/src/entrypoints/cli.js:4449:12671)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-13T05:21:40.141Z"
}
]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗