Invalid JSON Request: Malformed Low Surrogate in API Payload
Resolved 💬 4 comments Opened Jun 29, 2025 by CemRoot Closed Aug 20, 2025
Bug Description
API Error: 400 {"type":"error","error":{"type":"in
valid_request_error","message":"The request body
is not valid JSON: no low surrogate in string:
line 1 column 134294 (char 134293)"}}
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.33
- Feedback ID: a79bbb84-f856-4060-8f81-31f01d4c2016
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 RG (file:///Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n at file:///Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n at Q (file:///Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at VJ (file:///Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n at oS (file:///Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n at TB (file:///Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-29T09:46:37.103Z"},{"error":"Error: Command failed: /Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg -Uli --multiline-dotall (?i)(api[_-]?key|apikey)\\s*[:=]\\s*[\"'](?!process\\.env|import\\.meta\\.env)[^\"']+[\"'] --glob *.{ts,tsx,js,jsx,json,yaml,yml} /Users/dr.sam/Desktop/cv-genius-project-v2\nrg: regex parse error:\n (?:(?i)(api[_-]?key|apikey)\\s*[:=]\\s*[\"'](?!process\\.env|import\\.meta\\.env)[^\"']+[\"'])\n ^^^\nerror: look-around, including look-ahead and look-behind, is not supported\n\nConsider enabling PCRE2 with the --pcre2 flag, which can handle backreferences\nand look-around.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at ChildProcess.exithandler (node:child_process:414:12)\n at ChildProcess.emit (node:events:518:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1101:16)\n at Socket.<anonymous> (node:internal/child_process:456:11)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:489:12)\n at Pipe.<anonymous> (node:net:351:12)","timestamp":"2025-06-29T09:47:37.165Z"},{"error":"Error: Command failed: /Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg -Uli --multiline-dotall (?i)(secret|token|password)\\s*[:=]\\s*[\"'](?!process\\.env|import\\.meta\\.env)[^\"']+[\"'] --glob *.{ts,tsx,js,jsx,json,yaml,yml} /Users/dr.sam/Desktop/cv-genius-project-v2\nrg: regex parse error:\n (?:(?i)(secret|token|password)\\s*[:=]\\s*[\"'](?!process\\.env|import\\.meta\\.env)[^\"']+[\"'])\n ^^^\nerror: look-around, including look-ahead and look-behind, is not supported\n\nConsider enabling PCRE2 with the --pcre2 flag, which can handle backreferences\nand look-around.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at ChildProcess.exithandler (node:child_process:414:12)\n at ChildProcess.emit (node:events:518:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1101:16)\n at Socket.<anonymous> (node:internal/child_process:456:11)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:489:12)\n at Pipe.<anonymous> (node:net:351:12)","timestamp":"2025-06-29T09:47:40.757Z"},{"error":"Error: Command failed: /Users/dr.sam/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg -Uli --multiline-dotall (?i)(private[_-]?key|client[_-]?id|client[_-]?secret)\\s*[:=]\\s*[\"'](?!process\\.env|import\\.meta\\.env)[^\"']+[\"'] --glob *.{ts,tsx,js,jsx,json,yaml,yml} /Users/dr.sam/Desktop/cv-genius-project-v2\nrg: regex parse error:\n (?:(?i)(private[_-]?key|client[_-]?id|client[_-]?secret)\\s*[:=]\\s*[\"'](?!process\\.env|import\\.meta\\.env)[^\"']+[\"'])\n ^^^\nerror: look-around, including look-ahead and look-behind, is not supported\n\nConsider enabling PCRE2 with the --pcre2 flag, which can handle backreferences\
Note: Error logs were truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗