Invalid JSON Request: Malformed Surrogate Character in API Payload

Resolved 💬 3 comments Opened Jul 20, 2025 by rohitsingh2410 Closed Jan 5, 2026

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 133880 (char
133879)"}}
╭──────────────

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.56
  • Feedback ID: 206b0e4f-b707-4046-a142-28dc712ab607

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:892:11)\n    at execSync (node:child_process:964:15)\n    at A7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:797:5848)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:48013\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n    at fY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:45724)\n    at QK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:44590)\n    at SB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:50639)","timestamp":"2025-07-20T05:18:37.124Z"},{"error":"Error: ENOENT: no such file or directory, open '/proc/version'\n    at Module.readFileSync (node:fs:434:20)\n    at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:8638\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n    at kT4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:62815)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-20T05:18:37.777Z"},{"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 133880 (char 133879)\"}}\n    at V4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1249:6428)\n    at dM.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1266:2101)\n    at dM.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1266:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async w81.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:14158)\n    at async w81 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2210:1704)\n    at async mqB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:14009)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:9066\n    at async JKA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:1626)\n    at async ra (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:9036)","timestamp":"2025-07-20T05:28:38.939Z"},{"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 133880 (char 133879)\"}}\n    at V4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1249:6428)\n    at dM.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1266:2101)\n    at dM.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1266:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async w81.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:14158)\n    at async w81 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2210:1704)\n    at async mqB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:14009)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:9066\n    at async JKA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:1626)\n    at async ra (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2670:9036)","timestamp":"2025-07-20T05:30:41.333Z"},{"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 133880 (char 133879)\"}}\n    at V4.generate (file:///opt/homebre

Note: Error logs were truncated.

View original on GitHub ↗

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