claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Invalid Character Handling Failure in Guess Request Parsing

Open denaha opened this issue 6 months ago • 0 comments

Bug Description Guess the earlier request contains some invalid characters and there is no way to recover

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.31
  • Feedback ID: 8824c228-b5c9-4382-8564-1b445ad1ccb3

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 NZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at GX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at fS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at R9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-23T20:56:20.894Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:481:14)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-06-23T20:56:21.129Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: no low surrogate in string: line 1 column 2459917 (char 2459916)\"}}\n    at d6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1302:12578)\n    at yw.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:2082)\n    at yw.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async N11.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:18554)\n    at async N11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1492:703)\n    at async pU2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:18400)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:13529\n    at async Oe1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:4695)\n    at async Wu (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:13499)","timestamp":"2025-06-23T20:56:30.660Z"}]

denaha avatar Jun 23 '25 20:06 denaha