Invalid JSON Parsing Error in API Request Body
Resolved 💬 1 comment Opened Jun 17, 2025 by beforetheshoes Closed Jun 18, 2025
Bug Description
Getting this error all of a sudden: ⎿ 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 74052 (char 74051)"}}
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.25
- Feedback ID: 5fac3c61-9eaa-4658-90ce-be26d99a945c
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 wZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8863\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at IX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8009)\n at NS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:7090)\n at T6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11202)","timestamp":"2025-06-17T10:46:19.221Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at lD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:1176)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:910\n at Array.map (<anonymous>)\n at kK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:901)\n at O$2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1908:9243)\n at _E (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n at vT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at xT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at Uq (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n at sE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-17T14:26:08.731Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at lD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:1176)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:910\n at Array.map (<anonymous>)\n at kK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:901)\n at O$2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1908:9243)\n at _E (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n at vT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at xT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at Uq (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n at sE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-17T14:26:08.737Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at lD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:1176)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:910\n at Array.map (<anonymous>)\n at kK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:901)\n at O$2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1908:9243)\n at _E (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n at vT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at xT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at Uq (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n at sE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-17T15:26:04.339Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at lD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:1176)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:910\n at Array.map (<anonymous>)\n at kK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1463:901)\n at O$2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1908:92
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗