claude-code - 💡(How to fix) Fix [BUG] JSON errors in Claude Cowork [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52561Fetched 2026-04-24 06:03:53
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

API Error: JSON Parse error: Unable to parse JSON string

Code Example

API Error: JSON Parse error: Unable to parse JSON string
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

I am constantly getting JSON errors in the cowork desktop UI, it's unusable for me right now. Started happening yesterday https://webpagefx.mangoapps.com/msc/MjgzNTIzNV8yNDM5NDIzNQ

<img width="1857" height="1214" alt="Image" src="https://github.com/user-attachments/assets/d8e702e0-6b2b-4e04-a932-d62a31a89878" [/>](url)

What Should Happen?

I should be able to use Claude Cowork

Error Messages/Logs

API Error: JSON Parse error: Unable to parse JSON string

Steps to Reproduce

Ask Cowork anything

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

no idea

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by investigating and fixing the JSON parsing error in the Anthropics API or the Claude Code application.

Guidance

  • Verify the JSON data being sent to the API is correctly formatted and can be parsed without errors.
  • Check the API documentation for any recent changes to the expected JSON format or parsing rules.
  • Test the API request with a tool like curl or Postman to isolate the issue and confirm if it's specific to the Claude Cowork desktop UI.
  • If the issue is confirmed to be a regression, try to identify the last working version of the Claude Code or Anthropics API to pinpoint the change causing the error.

Example

No code example is provided due to lack of specific implementation details in the issue.

Notes

The solution may require collaboration with the Anthropics API team or further investigation into the Claude Code application's JSON parsing logic. Without more information on the specific JSON data or the last working version, it's challenging to provide a precise fix.

Recommendation

Apply workaround: Given the lack of information about the last working version and the specifics of the JSON error, applying a workaround such as manually validating and formatting the JSON data before sending it to the API might be the most feasible immediate step.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] JSON errors in Claude Cowork [1 participants]