SyntaxError: Unexpected token — page 3
A parse failed, most often on config or a truncated JSON response.
712 issues · 24 open · 688 resolved (97%) · 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. 35 new reports in the last 90 days vs 93 in the 90 before — -62%. The open backlog peaked at 129 in 2025-12 and sits at 24 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
315 of these reports name the Claude Code build they were running, spanning 114 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 688 closures. Of the 688 closures with a recorded reason, 19% were closed as completed and 559 as not-planned or duplicate. The most recent completed fix landed in 2026-10.
Workarounds reported by the community
76 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 712 matches; the statistics above cover all 712.
- [Bug] Anthropic API Error: Internal server error (500) FAILING AGAIN!!!!!!!!!!!!!
- UI get this after trying to login to my Claude PRO account...
- [Bug] Anthropic API Error: Internal server error (500) with session blocking
- 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] VS Code extension 2.1.296: black/empty panel, webview throws 'SyntaxError: Unexpected identifier object' (2.1.295 works)
- Published artifacts render blank again — possible regression of #42064 (postMessage origin mismatch)
- [Bug] Native binary crashes with SIGILL on CPUs without AVX2 support
- [BUG] Claude Code needs AGENTS.md support, repository-aware tool selection, and stricter Git controls
- MCP server registered via 'claude mcp add' not surfacing tools in conversational interface when claude.ai web connectors are also present
- [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
- [BUG] Model emits fish-syntax to Bash tool when login shell is fish
- Sandboxed Bash commands get a spurious backslash before `!` (shell-quote re-escapes the eval wrapper)
- You've hit your session limit · resets 6:40am (Europe/Istanbul)
- Claude introduced JS syntax error in Python template, spent 2 sessions misdiagnosing
- [BUG] headersHelper output not applied to HTTP MCP requests -- SDK ignores tokens and falls through to OAuth 2.1 browser flow
- Workflow tool: script parse errors always blame "TypeScript syntax" even for plain-JS errors (misleading)
- Hook path with spaces in username executes wrong file on Windows — unquoted ~ expansion splits path at space
- [BUG] Desktop SSH (Mac → Windows): shell mis-detected as 'posix' after update, breaks 'server --install' on PowerShell default shell
- [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