Invalid JSON Parsing Error in API Request Body
Resolved 💬 1 comment Opened Jun 23, 2025 by prodepollo Closed Jul 27, 2025
Bug Description
Unable to continue the conversation due to API error 400.
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The request body is not valid JSON: invalid high surrogate in string: line 1 column 346393 (char 346392)"}}
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.31
- Feedback ID: ba92195f-5bc0-4e3d-bd5d-b327e365b55a
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 NZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at GX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n at fS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n at R9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-21T12:24:58.003Z"},{"error":"MaxFileReadTokenExceededError: File content (29659 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at mG5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1409:432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1404:4919)\n at async aY5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1837:12597)\n at async DH1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1837:10753)\n at async lK1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1691:775)\n at async nY5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1837:9897)\n at async cY5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1837:9382)\n at async uO (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1837:8360)\n at async uO (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1837:9261)","timestamp":"2025-06-21T12:48:09.580Z"},{"error":"Error: ENOENT: no such file or directory, stat '/Users/andrea/GitHub/conversation-filter/frontend/CLAUDE.md'\n at Module.statSync (node:fs:1737:25)\n at Object.statSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:536:687)\n at WfA.readFile (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:536:1919)\n at JP1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:559:39)\n at ht1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1730:275)\n at AJ5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:1150)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:599\n at Array.map (<anonymous>)\n at $e1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:435)\n at pU2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:17548)","timestamp":"2025-06-21T13:07:15.413Z"},{"error":"Error: String not found in file. Failed to apply edit.\n at gO (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1720:546)\n at gt1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1720:104)\n at Object.renderToolUseRejectedMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1830:2012)\n at aE2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1865:1090)\n at xE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:80:19803)\n at mT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:42555)\n at gT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:38104)\n at qq (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:38032)\n at eE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:37886)\n at lW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:34976)","timestamp":"2025-06-21T13:23:18.780Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at aD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:1184)\n at file:///opt/h
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗