Invalid JSON Request: Malformed Surrogate Character in API Payload

Resolved 💬 4 comments Opened Jul 25, 2025 by yyy110011 Closed Aug 19, 2025

Bug Description
API 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 139754 (char 139753)"}}

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.57
  • Feedback ID: e5993c93-0994-42cf-9686-3df1eac671f5

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 D7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:841:5854)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:48942\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:653:14408)\n    at $W (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:46653)\n    at rK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:45519)\n    at dB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:51568)","timestamp":"2025-07-22T05:07:05.427Z"},{"error":"Error: ENOENT: no such file or directory, open '/proc/version'\n    at Module.readFileSync (node:fs:442:20)\n    at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:7096)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:8658\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:653:14408)\n    at __4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:63371)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-22T05:07:06.148Z"},{"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:518:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-22T05:07:06.952Z"},{"error":"AbortError: The operation was aborted\n    at abortChildProcess (node:child_process:716:27)\n    at AbortSignal.onAbortListener (node:child_process:786:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:762:26)\n    at runAbort (node:internal/abort_controller:447:10)\n    at abortSignal (node:internal/abort_controller:433:3)\n    at AbortController.abort (node:internal/abort_controller:466:5)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:730:90)\n    at listOnTimeout (node:internal/timers:594:17)\n    at process.processTimers (node:internal/timers:529:7)","timestamp":"2025-07-22T05:08:29.483Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at dW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1467:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1467:912\n    at Array.map (<anonymous>)\n    at gY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1467:903)\n    at INB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2380:10661)\n    at rN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19804)\n    at y_ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at S_ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at PT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at EL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-22T05:58:20.938Z"},{"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:518:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-22T06:19:35.249Z"},{"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:eve

Note: Error logs were truncated.

View original on GitHub ↗

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