Anyone hitting the below error when running claude code?
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The request body is not valid JSON: invalid high surrogate in string: line 47 column 5162 (char 45482)"}}
Claude models from Agent Router return errors.
Error:
API Request Failed
Cannot read properties of null (reading 'choices')
It works fine with model GTP-5 and xAI.
Anyone know a solution for this?
UPDATE None issue now because AgentRouter no longer has Claude models.
But perhaps the same issue exists for Claude models from OpenRouter.
Claude models from Agent Router return errors.
Error:
API Request Failed
Cannot read properties of null (reading 'choices')
It works fine with model GTP-5.
Anyone know a solution for this?