Invalid JSON Request: Malformed Low Surrogate in API Payload
Resolved 💬 1 comment Opened Jun 17, 2025 by tigrerol Closed Jun 18, 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 122443 (char 122442)"}}
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.25
- Feedback ID: 1f6dd321-bf25-413c-ba5d-4d097e3007bc
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 wZ (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:8863\n at Q (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at IX (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:8009)\n at NS (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:7090)\n at T6 (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:582:11202)","timestamp":"2025-06-17T21:05:47.336Z"},{"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-06-17T21:05:47.661Z"},{"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 122443 (char 122442)\"}}\n at h6.generate (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1300:12578)\n at Sw.makeStatusError (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1315:2082)\n at Sw.makeRequest (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1315:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async GE2.E11.showErrors (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1668:22049)\n at async E11 (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1668:12215)\n at async GE2 (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1668:21895)\n at async file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1668:17115\n at async ft1 (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1668:5163)\n at async Xu (file:///Users/rolandlechner/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1668:17085)","timestamp":"2025-06-17T21:06:13.884Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗