[BUG] RangeError: Invalid string length

Resolved 💬 5 comments Opened Jul 24, 2025 by Chapoly1305 Closed Jan 4, 2026

Environment

  • Platform (select one):
  • [X ] Anthropic API
  • Claude CLI version: Claude Code Status v1.0.59
  • Operating System: macOS 15.5 (24F74) Apple Silicon
  • Terminal: VS Code

Session ID: a13146a2-c6c0-4ebf-9363-0d726ca89091

Bug Description

.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:780
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
RangeError: Invalid string length
    at Socket.<anonymous> (file:///Users/alex/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:780:8787)
    at Socket.emit (node:events:519:35)
    at Socket.emit (node:domain:489: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:189:23)

Node.js v24.2.0

Steps to Reproduce

  1. Not sure how it happened

Expected Behavior

Don't crash.

Actual Behavior

Program existed during computation

code.log.zip

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗