Invalid JSON Serialization Error During Code Generation Request

Resolved 💬 3 comments Opened Aug 16, 2025 by CryptologySAC Closed Aug 19, 2025

Bug Description
midway execution of a code change in typescript I get the following error: 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
67220 (char 67219)"}}

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.83
  • Feedback ID: 6e52eb27-73d7-4cbc-a271-034e506a906c

Errors

[{"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 67220 (char 67219)\"}}\n    at new tW (unknown:1:28)\n    at new wY (/$bunfs/root/claude:794:1964)\n    at new MW0 (unknown:1:28)\n    at generate (/$bunfs/root/claude:794:2421)\n    at makeRequest (/$bunfs/root/claude:811:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-16T02:19:37.049Z"},{"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 67220 (char 67219)\"}}\n    at new tW (unknown:1:28)\n    at new wY (/$bunfs/root/claude:794:1964)\n    at new MW0 (unknown:1:28)\n    at generate (/$bunfs/root/claude:794:2421)\n    at makeRequest (/$bunfs/root/claude:811:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-16T02:21:43.502Z"}]

View original on GitHub ↗

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