[Bug] Anthropic API Error: Invalid JSON - malformed surrogate in request body

Resolved 💬 2 comments Opened Apr 11, 2026 by Stupidism Closed Apr 11, 2026

Bug Description
session broken with such an error

我已经把 netskope 关掉了
⎿  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 755115 (char
755114)"},"request_id":"req_011CZxLhDCoWDPfTJaeGeagn"}

❯ test
⎿  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 755115 (char
755114)"},"request_id":"req_011CZxLkLXBEoMSooX9341bE"}

❯ test
⎿  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 755115 (char
755114)"},"request_id":"req_011CZxLmfQzxmTnhQa9zemJB"}

❯ test
⎿  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 755115 (char
755114)"},"request_id":"req_011CZxLnzrpPGDrGpRJqF1Er"}

❯ test
⎿  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 755115 (char
755114)"},"request_id":"req_011CZxLsLJE499MkFWSf5X43"}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.101
  • Feedback ID: 5b98bccc-a7b5-4a22-acb6-cdc727532298

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/feng/.local/share/claude/versions/2.1.101 (expected in multi-process scenarios)\n    at Oc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n    at Ve6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T17:01:48.484Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: unknown certificate verification error\n    at VU1 (/$bunfs/root/src/entrypoints/cli.js:2834:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T17:01:49.905Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: unknown certificate verification error\n    at VU1 (/$bunfs/root/src/entrypoints/cli.js:2834:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T17:01:49.906Z"},{"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 755115 (char 755114)\"},\"request_id\":\"req_011CZxLsLJE499MkFWSf5X43\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53430)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T17:01:52.850Z"}]

View original on GitHub ↗

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