[BUG] API Error: 400 Invalid Request Error

Resolved 💬 1 comment Opened Jul 10, 2025 by jianjye Closed Jul 11, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: Claude Code
  • Claude CLI version: 1.0.44
  • Operating System: MacOS 15.5
  • Terminal: Terminal app

Bug Description

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 23370 
    (char 23369)"}}

Steps to Reproduce

Basically enter any text messages in claude code, it would respond with this message and stop. Been happening intermittently past hour.

Expected Behavior

To respond to my prompts with actual messages or actions instead of this error.

Additional Context

I also had the API Error: 401 issue earlier today. I noticed it was fixed. But now this is a new error.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗