[BUG] Claude Code crash
Resolved 💬 6 comments Opened Jun 14, 2025 by evanphx Closed Jan 4, 2026
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.24 <!-- output of
claude --version--> - Operating System: linux <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
- Terminal: ghostty <!-- e.g. iTerm2, Terminal App -->
Bug Description
Claude code crashes with:
RangeError: Invalid string length
at Socket.<anonymous> (file:///home/evanphx/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:583:7171)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)
<!-- A clear and concise description of the bug -->
Steps to Reproduce
- Run any prompt <!-- First step -->
Expected Behavior
It doesn't crash.
<!-- What you expected to happen -->
Actual Behavior
It crashes!
<!-- What actually happened -->
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗