[BUG] API Error: Expected ',' or '}' after property value in JSON at position 129 (line 1 column 130)

Resolved 💬 3 comments Opened Mar 20, 2025 by MarcusElwin Closed Nov 29, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version --> 0.2.50
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 --> macOS 15.1.1
  • Terminal: <!-- e.g. iTerm2, Terminal App --> iTerm2

Bug Description

<!-- A clear and concise description of the bug -->
I ask claude-code to fix a bug like the below and occasionally I get this error:

> not what I want help me fix in the query-expander where this bug is from
  ⎿  API Error: Expected ',' or '}' after property value in JSON at position 129 (line 1 column 130)

Steps to Reproduce

  1. <!-- First step --> Modify some code python or typscript
  2. <!-- Second step --> Ask claude to fix bug

Expected Behavior

<!-- What you expected to happen -->
No API error

Actual Behavior

<!-- What actually happened -->
API error

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

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