SyntaxError: Unexpected token — page 3
A parse failed, most often on config or a truncated JSON response.
698 issues · 30 open · 668 resolved (96%) · first seen Feb 25, 2025
First response · local
What to do now
Most likely: The local Claude Code process crashed while parsing or executing.
- Record the Claude Code version and the first stack frame before restarting.
- Try a fresh session with the same minimal input to distinguish corrupted state from a repeatable crash.
- Preserve logs and compare reports from the same version before downgrading.
These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.
Is this getting better or worse?
This class of problem is converging. 43 new reports in the last 90 days vs 162 in the 90 before — -73%. The open backlog peaked at 129 in 2025-12 and sits at 30 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
301 of these reports name the Claude Code build they were running, spanning 102 releases. Heaviest reporters:
- Claude Code v2.0.76
- Claude Code v2.1.31
- Claude Code v2.1.20
- Claude Code v2.1.104
- Claude Code v2.1.29
- Claude Code v2.1.7
- Claude Code v2.1.119
- Claude Code v2.1.107
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 4 days across 668 closures. Of the 668 closures with a recorded reason, 19% were closed as completed and 541 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
69 of these issues post a workaround someone says worked. The highest-engagement ones:
- API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation. - [Bug] Anthropic API Error: Unexpected 400 Bad Request Response
- …67 (my report) 8887 8893 8894 8895 8897 8903 EDIT (Oct 14): Workaround for tool use/tool result 400 errors: A research-backed solution was posted on Oct 10: Add the provided instructions to your global CLAUDE.md (~/.clau…
Found in the thread of #8763 · resolved - [Bug] Anthropic API Error: Tool Use Concurrency Limitation
- I tried many workaround without success. In my case, it was a specific PDF file causing the issue. Once unreferenced, it works.
Found in the thread of #9002 · resolved - [BUG] Terminal Paste Corruption from Bracketed Paste Mode
- …Copy/paste any text Expected vs Actual Expected : Actual : Workarounds - - - Restart terminal Technical Details Claude Code leaves terminal in corrupted bracketed paste mode. The / characters are escape sequences ( / )…
Found in the description of #3134 · resolved - [BUG] Cowork Edit/Write tools silently truncate files via byte-conservation buffer cap (deterministic, fires at all file sizes)
- …ull correct content while the file on disk was corrupt. The workaround holds. Every reporter who moved all writes to bash reports zero further loss. No counterexamples in the thread. What is not settled: the mechanism Th…
Found in the description of #53940 · still open - [BUG] awsAuthRefresh is not working properly after upgrade to claude code 2.0
- …ms to want that to be json, which it isn't. I've tried some work arounds, like "aws sso login --profile profile-name --output json" or "aws sso login --profile pofile-name 1 /dev/null". The first one does nothing, the se…
Found in the thread of #8447 · resolved
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 201–300
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 698 matches; the statistics above cover all 698.
- What a shi* fu** model
- [Bug] Anthropic API Error: Invalid image media type when pasting file path
- [Bug] Terminal display flickering during execution
- [Feature Request] Support for 1M token context window
- [Bug] Infinite scrolling loop causing unresponsive UI (cc tripping out)
- [Bug] Unable to Toggle @mention Functionality in MCP
- [Bug] Phantom File Edits: No Actual Changes Persisted
- No token limit info that can check before running out is such a pain
- 5-hour limit reached ∙ resets 2am
- Invalid API key · Please run /login
- Stderr Redirection Causing Unexpected Behavior in Command Execution
- Improve LLM Context Handling and Clarification Mechanism
- Shell Styling Breaks Bash Tool Parsing and Functionality
- Anthropic API Request Timeout or No Response from Claude
- API Error: 401 {"type":"error","error":{"type":"authenticat...
- Invalid Tool Result Block for Pending Tool Use
- [BUG] Claude trashed a file, spraying line numbers throughout it. This is the LLMs analysis of what went wrong with its edits.
- Keyboard Escape Key Unresponsive During Option Selection
- Prompt Navigation and Editing Causes Unintended Text Loss
- [BUG] Claude Code needs AGENTS.md support, repository-aware tool selection, and stricter Git controls
- [BUG] Claude Code crashes on Windows (exit code 3221225477) when using Bedrock configuration
- [Bug] Anthropic API Error: Usage Policy violation blocks security research requests
- [Sonnet 4.6 / Opus 4.7] Unexpected token consumption increase with `medium` effort after recent update
- You've hit your limit · resets 1pm (Europe/London)
- You've hit your limit · resets 7pm
- You've hit your limit · resets 12pm (Europe/London)
- [BUG] Published artifacts show blank screen - postMessage origin mismatch (app://localhost)
- Bug with weekly limit, and extra credit.
- [BUG] Claude Code Desktop: session closes silently, no response displayed
- [Bug] Input box text truncation on display
- [BUG] Claude Code v2.1.21 broke NVM
- [BUG] Failed to install Claude on MacOS, bash: line 1: syntax error near unexpected token `<'
- [Bug] Git Bash PATH format mismatch on Windows prevents command execution
- [Bug] Claude continues processing previously attached large image after user requests it be ignored
- [Bug] Incomplete response output - truncated message display
- [BUG] Latest Claude desktop version fails to fallback to url ${resource}/.well-known/openid-configuration
- [Bug] Claude ignores explicit user instructions and performs predicted tasks instead
- i tired to upload a photo it gived me an error and it...
- [Bug] Refactoring large codebase produces inconsistent results across multiple attempts
- [Bug] Windows Heap Out of Memory Error with Subagent Task
- [Bug] Anthropic API Error: Missing Tool Result Block for File Scanning
- [Bug] PERMISSION BYPASS: lsof runs without being in allow list
- [Bug] Anthropic API Error: Unexpected Content Filtering for Legal Page Generation
- Invalid Base64 PDF Encoding in File Read Operation
- [Bug] Claude Code: Incorrect Layout Handling with Persistent Misplacement of Elements
- [Bug] Anthropic API Error: Invalid JSON Parsing in Prompt Submission
- [Bug] Anthropic API Error: Intermittent AUP Violation Detection During Project Tasks
- [Bug] Stuck Processing - Query Blocked by Ongoing Operation
- [Bug] Anthropic API Error: Invalid Message Content in Request
- [BUG] TypeScript SDK fails when using pathToClaudeCodeExecutable with native binary installation
- Terminal UI Scrolling Glitch with Long Conversation Histories
- Bug Report - ClaudeCode API Error (529 {"type":"error","error":{"type":"overloaded_error","message":"Overloaded"}})
- Anthropic API: Unexpected Token Truncation in Claude Opus Conversation
- Windows/Git Bash: Bash tool silently halves backslashes in commands (MSVCRT vs MSYS2 command-line encoding mismatch)
- Published artifacts render blank again — possible regression of #42064 (postMessage origin mismatch)
- [BUG] Model emits fish-syntax to Bash tool when login shell is fish
- MCP server registered via 'claude mcp add' not surfacing tools in conversational interface when claude.ai web connectors are also present
- [Feature Request] Display wide GFM tables as raw markdown or scrollable instead of expanding to field-value list
- I tried to vibe code and after reading the files, it...
- After my session was suspended last night due to rate...
- [Bug] Extra usage failover not triggering on session limit with available balance
- [Bug] Anthropic API Error: Out of Extra Usage despite available quota on Claude Max plan
- [Bug] Claude generates invalid Python syntax with escaped characters in code execution
- API Error: 500 ...
- You've hit your limit · resets 7pm (America/Los_Angeles)
- I get an error that I need to login to claude.ai and accept...
- [Bug] Anthropic API Error: Unspecified
- [BUG] Claude fails silently in VSCode with hook failures
- [Bug] Model fallback to claude-3-5-sonnet when requested model unavailable
- [Bug] Claude Code exits unexpectedly without error message
- [Bug] Stop hook schema fails the stroop test
- [Bug] Model misrepresents vendor position on friction/adversarial behavior after safety documentation ingestion
- [Bug] IDE Terminal scrolls to top unexpectedly during long sessions
- [Bug] Stack overflow in tool execution streaming path (RangeError: Maximum call stack size exceeded)
- [Bug] Terminal UI flashing/scrolling erratically during manual code review in long chat histories
- [Bug] Anthropic API timeout: Models unresponsive with excessive tool call delays
- [Bug] Local project settings bleeding into global ~/.claude/settings.json during REPL config browsing
- [Feature Request] Auto-compact should execute instantly without blocking operations
- [Bug] Text rendering corruption in Claude Code window
- [Bug] Context window exhausted in new session
- [Bug] Incorrect model routing: Sonnet being used instead of requested Opus model
- [Bug] /context command displays broken view with missing legend and excessive whitespace
- [Bug] Export generates duplicate filename after /clear command
- Bug Report
- [Bug] Shift+Enter Line Break Functionality Broken in VS Code
- [Bug] Anthropic API Error: Unspecified API Interaction Issue - Claude Sonnet 4.5 misusing the many images tool
- [BUG]
- [BUG] Claude fails to start on Windows (fine on WSL)
- [Bug] Code Repair Fails to Resolve Basic Indentation Issues
- Bug Report
- seems my cladue code faced the API Error: 401...
- Misinterpret Exploratory Questions as Unintended Entity Creation Requests
- Node.js Module Import Error: Missing 'addAbortListener' in node:events
- Anthropic API Errors 529/400 on 200 Max Token Plan
- Unexpected Parsing Error with Special Character Input
- Empty /cost Command Output Rendering Incorrectly
- API Error: 401 {"type":"error","error":{"type":"authenticati...
- Not able to chat with agent in claude code it is throwing...
- Unhandled 500 Internal Server Error in API Response
- I'll help you craft a clear issue title, but I notice the description lacks specific technical details. Without more context about the specific system, error, or environment, I'll create a generic but informative title: "Performance Degradation and Offlin