The API layer issues on Linux — page 2
Issues the maintainers labelled both platform:linux and area:api.
354 issues · 18 open · 336 resolved (95%) · first seen May 7, 2025
Is this getting better or worse?
This class of problem is converging. 26 new reports in the last 90 days vs 47 in the 90 before — -45%. The open backlog peaked at 85 in 2025-12 and sits at 18 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
141 of these reports name the Claude Code build they were running, spanning 65 releases. Heaviest reporters:
- Claude Code v2.1.29
- Claude Code v2.1.19
- Claude Code v2.0.76
- Claude Code v2.1.37
- Claude Code v2.1.104
- Claude Code v2.1.109
- Claude Code v2.1.38
- Claude Code v2.1.17
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 30 days across 336 closures. Of the 336 closures with a recorded reason, 33% were closed as completed and 226 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
51 of these issues post a workaround someone says worked. The highest-engagement ones:
- [BUG] Oversized image breaks conversation permanently - no way to recover without starting new chat
- …retry without failed images, or client-side image resizing Workaround Currently, users must start a new conversation and manually reconstruct any important context.
Found in the description of #13480 · resolved - [BUG] No Response From API 2.1.181, 2.1.183 (constantly)
- …-URL clients. Filed 69759 with the gateway-specific detail. Workaround that's holding for us: pin to 2.1.179 + so the background updater doesn't re-bump past it.
Found in the thread of #69358 · resolved - Claude Code: constantly seeing 'API Error (Request timed out...)' - Retrying in .. seconds.. (attempt x/10)'
- …tep tasks, which can exceed the default API timeout limits. As a workaround, you can increase the API timeout by setting the API TIMEOUT MS environment variable before launching Claude Code. For example, you can use the…
Found in the thread of #2728 · resolved - [BUG] max_tokens must be greater than thinking.budget_tokens
- workaround is possible by editing settings.json (in my case in ~/.claude/settings.json), by setting the "alwaysThinkingEnabled" to false.
Found in the thread of #8756 · still open - API Error 400: thinking blocks order error on first tool use after clean install
- Another workaround is to use agents, it seems they are not affected by the bug.. It seems only the main claude get the error after using tools.
Found in the thread of #20692 · still open
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 101–200
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 354 matches; the statistics above cover all 354.
- [BUG] Stream stall + sdk_stream_ended_no_result after update to 2.1.141
- I'm unable to generate a GitHub issue title from this message because it doesn't describe a specific bug or feature request for Claude Code. The message appears to be expressing concerns about API access levels and model autonomy rather than reporting a t
- [BUG] API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kQAXBErqgwfoNEoZuJ"}
- [BUG] Silent session exits with resume link — persists across multiple machines after Feb 10 incident
- You've hit your limit · resets 4pm (Europe/Berlin)
- [BUG] Session becomes permanently unrecoverable after empty text content block during streaming
- [Bug] Usage meter spike from 1% to 74% with concurrent Claude Code sessions
- [BUG] [BUG] API Error 400 "tool use concurrency issues" in interactive mode with Opus 4.5
- Intermittent connection failures in Claude Code on WSL2
- [Bug] Anthropic API Error: Overloaded Service Limits
- [BUG] API Error (request timed out) in Claude Code in vscode
- [Bug] Anthropic API Error: Missing Tool Result Block
- Escape Key Breaks Tool Use Workflow: Missing Tool Result Blocks
- [BUG] Got a session limit issue without actually using it, hit the limit exactly at the start of the reset
- [BUG] Please finally fix the JSON low surrogate issue.
- API Error 500 at ~175K context — 1M window not active on Max plan (Opus 4.6)
- [Bug] Anthropic API not respecting MAX_THINKING_TOKENS limit, exceeds configured threshold
- [Bug] Anthropic API Error: 400 - Tool Use Concurrency Conflict
- i want my money back.
- [Bug] Anthropic API Error: Overly broad safety filter blocks legitimate bioinformatics metadata requests
- [BUG] Could you, like, relax the "Usage Policy" violations a little? 🤣
- [Bug] Misleading API Model Limit Handling for Claude Models
- [BUG] Python SDK: `system_prompt` parameter causes `model` parameter to be ignored
- [BUG] Long delay for initial commend behind firewall
- `claude` crashes when the Anthropic API is down
- [BUG] OAuth Max plan rate-limited since ~March 24 — 'workspace API usage limits' error on non-API user
- [BUG] Claude-code wronlgy sending each user request twice to Anthropic model
- Frequent 500 Internal Server Errors - API instability (2025-02-25)
- Claude sits with a user prompt forever
- You've hit your limit · resets Feb 11, 7pm (America/New_York)
- [BUG] mTLS client certificates broken in v2.1.23+ (works in v2.1.22)
- API Connection Errors During Operation in WSL2 (Correlated with IP Changes)
- API Connection Timeout Despite Healthy System Resources (125GB RAM Available)
- [Bug] Anthropic API Error: Cannot modify thinking blocks in compact operation
- [Bug] Anthropic API Error: Internal Server Error (500)
- [BUG] Content filtering policy blocking legitimate defensive security abuse report generation
- [BUG] API Error (Request timed out.)
- Bug Report
- Anthropic API Overloaded Error During Request
- [BUG] Repeated API Error 400
- [BUG] 2.1.183: pre-first-byte streaming aborts on custom ANTHROPIC_BASE_URL (proxy/gateway), large-context — regression from 2.1.179 (2.1.181 unaffected on the gateway)
- Rate limit error on MAX+ plan when invoking slash commands with low usage
- [BUG] API Error: 500
- Read tool: invalid PDF crashes entire session with API 400 error (unrecoverable)
- [BUG] Agent/subagent initialization fails multiple times in all sessions until a 5-minutes API timeout fixes it
- [BUG] Context silently wiped after "Connection error" during streaming fallback
- [BUG] `--resume` with empty prompt (`-p ""`) causes unhandled promise rejection and zombie process
- [BUG] Agent SDK crashes with "Unterminated string in JSON" when tool output contains U+2028/U+2029 characters
- [Bug] Anthropic API Error: tool_reference blocks unsupported on claude-haiku-4-5-20251001
- [BUG] Can't get headless claude to run in pipeline when connecting to Azure Foundry models
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Anthropic API Error: Internal server error (500) with session blocking
- [Bug] Anthropic API Error: HTTP 500 Internal Server Error
- Anthropic API Error: Missing Tool Result Block for Tool Use ID
- [BUG] tools.43.custom.name: String should have at most 64 characters
- Invalid OpenAI Model Name in API Request
- [BUG] API Error: Request was aborted
- Invalid JSON Request: Malformed Low Surrogate in API Payload
- [Bug] Content filter rejection on benign test data containing "Never Gonna Give You Up" reference
- [Bug] Anthropic API Error: Content Filtering Policy blocks AGPLv3 LICENSE file creation
- [BUG] 500 - internal server error
- [MODEL] Unacceptable Weekend Abandonment After Shipping Broken Release - Multiple Critical Failures
- [Bug] Claude Code returns HTTP 500 errors on all API requests
- [BUG] Regression - Azure Foundry auth failing since 2.0.70
- [Bug] Anthropic API token counting performance degrades linearly with conversation size
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Anthropic API Error: Image media type mismatch for base64 data
- [Bug] Anthropic API Error: Internal server error (500)
- [Bug] Anthropic API Error: 400 Bad Request after auto-compact with insufficient context recovery
- [Bug] Session teleport from web to local fails due to 400
- [BUG] Custom agent fails with "Tool names must be unique" API error after upgrade to 2.x.x
- /init is analyzing your codebase…
- Request timed out
- [Bug] Anthropic API Error: Missing Tool Result Block for Tool Use IDs
- [BUG] Analyze source code security and performance issues, Claude output is incomplete
- [BUG] Process Hangs Indefinitely When Reading InputStream from Claude Code Headless Execution
- [Bug] Please auto-heal Anthropic API Error: Exceeded Total Text Bytes Limit and Error: Conversation too long
- [Bug] Anthropic API Error: Invalid Model Name "inherit" for slash commands
- [Bug] Anthropic API Error: Unexpected AUP Violation for SVG Circuit Diagram
- Specific session always generates API Error 400 on each request
- File Upload Size Limit Exceeded in /init Endpoint
- Bug Report
- Claude AI usage limit reached|1749924000
- Tool Use Blocks Missing Corresponding Tool Result Blocks
- Workflow counts API-errored subagents as "completed"; 429/500/529 storm under multi-agent load
- API 400 "cache_control cannot be set for empty text blocks" when user message contains only an image
- [BUG] CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 is being ignored since v2.1.129
- After just 500k tokens i get - You've hit your limit · resets 2am, and previous it was just 700k tokens. Before last weekend i could do millions.
- [BUG] API Rate limit stuck on claude code
- [BUG] Claude Code is not local inference friendly
- [BUG] 500 error
- [BUG] VSCode extension throws invalid_request_error despite valid credentials
- API Error: 500 ...
- [BUG] claude -p handles beta flags differently than without -p
- [BUG] Incorrect context token count in Claude Code when first chunk contains empty usage info
- [BUG] Thinking-only responses returned as text blocks when followed by tool_use
- API Error 400 - Frequent tool use concurrency issues with Remote SSH
- [Fix] Bug fix for API 400 error "`tool_use` ids must be unique"
- [BUG] Streaming tool-use arguments truncated by premature stop termination, producing invalid JSON
- [Bug Report: /rate-limit-options]