[Bug] Anthropic API Error: Invalid JSON Encoding in Request Body

Resolved 💬 3 comments Opened Sep 4, 2025 by yashasvigirdhar Closed Sep 8, 2025

Bug Description
The request body is not valid JSON: no low surrogate in string

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.100
  • Feedback ID: 48cae926-7bb4-4b83-8c5a-5263af521504

Errors

[{"error":"McpError: MCP error -32603: column c.name does not exist\n    at Ik1._onresponse (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1820:17188)\n    at _transport.onmessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1820:14360)\n    at VD0.processReadBuffer (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1822:2306)\n    at Socket.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1822:1672)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-09-02T21:44:27.280Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $V (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:912\n    at Array.map (<anonymous>)\n    at YX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:903)\n    at ogB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3178:9325)\n    at TD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n    at zc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n    at Z9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n    at jb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n    at hD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)","timestamp":"2025-09-02T22:15:34.726Z"},{"error":"McpError: MCP error -32603: cannot execute UPDATE in a read-only transaction\n    at Ik1._onresponse (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1820:17188)\n    at _transport.onmessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1820:14360)\n    at VD0.processReadBuffer (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1822:2306)\n    at Socket.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1822:1672)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-09-02T22:17:20.617Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $V (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:912\n    at Array.map (<anonymous>)\n    at YX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:903)\n    at ogB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3178:9325)\n    at TD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n    at zc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n    at Z9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n    at jb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n    at hD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)","timestamp":"2025-09-02T22:27:22.246Z"},{"error":"Error: Tool mcp__postgres__query not found\n    at rgB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3178:4437)\n    at TD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n    at zc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n    at Z9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n    at jb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n    at hD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)\n    at mH (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:35216)\n    at O6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:4841)\n    at A.Q.batchedUpdates (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/c

Note: Error logs were truncated.

View original on GitHub ↗

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