RangeError: Invalid String Length in Socket Stream Processing
Resolved 💬 4 comments Opened Jun 1, 2025 by aystream Closed Dec 10, 2025
Bug Description
RangeError: Invalid string length
at Socket.<anonymous> (file:///Users/alex/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:574:2996)
at Socket.emit (node:events:518:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:
Environment Info
- Platform: macos
- Terminal: WarpTerminal
- Version: 1.0.6
- Feedback ID: aac4e763-61f9-4ea5-b539-e00c159f040c
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at tG (file:///Users/alex/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:3921)\n at file:///Users/alex/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:6758\n at Q (file:///Users/alex/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:16886)\n at oR1 (file:///Users/alex/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:5777)\n at GG (file:///Users/alex/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:5406)\n at PU2 (file:///Users/alex/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1976:21167)","timestamp":"2025-06-01T05:39:27.697Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗