Error category

Claude Code and AI Coding Tool Errors and Fixes

Fix Claude Code, OpenCode, OpenClaw, and AI coding assistant failures around login, model routing, tool calls, file edits, permissions, quotas, and stalled agent sessions.

This AI Coding Tools troubleshooting hub collects real error signatures, quick fixes, common causes, and step-by-step debugging paths for developers who need a practical answer instead of a broad overview.

543 crawlable articles in this category. 318 additional records are indexed in JSON only (no standalone HTML route).

Browse AI Coding Tools records in the data catalog — search JSON index entries, including data-only records without standalone HTML guides.

Troubleshooting overview

Start by matching the exact error message, then check the technology, environment, credentials, network path, and deployment context. The pages below are grouped so you can move from broad AI Coding Tools symptoms to specific root-cause families without relying on client-side search.

Evidence labels are derived at build time from each Markdown record. Source-backed entries have public URLs under a Sources checked section, while partial-source entries expose public links without a complete source block.

AI Coding Tools diagnostic workflow

  1. Copy the exact error signature and compare it with the page title, code block, and technology label.
  2. Check whether the failure is local, CI-only, deployment-only, provider-side, or account-specific.
  3. Collect non-secret versions, configuration names, request IDs, and timestamps before making changes.
  4. Review source-backed or partial-source pages first when the issue might depend on provider behavior or version-specific bugs.
  5. Apply the smallest reversible fix and rerun the same failing action.

Common error types

  • Claude Code process exited
  • permission denied
  • file has not been read yet
  • context limit reached
  • tool call timeout
  • model routing failed

Common causes

  • GitHub Issue #307 (anthropics/claude-ai-mcp, 2026-05-18): User cannot connect M365 Connector in Claude Desktop app. They signed in as authorized account for Claude and Entra, but connection fails with 'Authorization with the MCP server failed' error and reference ID 'ofid_9643bc28edf7aa89'. Admin consent is already granted. This is a critical enterprise integration blocker. Maps to AI Coding Tools as it affects Claude Code desktop experience. (1 page)
  • GitHub Issue #60983 opened May 20 2026 by vthanik on anthropics/claude-code. Paid Max subscriber unable to use Remote Control feature. ~/.claude.json shows seatTier: null, hasAvailableSubscription absent even after fresh login. Subscription created Feb 28 2026 via stripe_subscription. Multiple users affected (CoderLessColder, jamierpond). Resolution attempted but reopens — jamierpond commented May 26 still unresolved. High commercial value: breaks a key feature for paying customers. Category: AI Coding Tools per approved mapping. (1 page)
  • 来源:memnexus-ai/support issues (#336, #334, #329, #327) — 同一作者多次提交相同问题。错误发生在 SSE(Server-Sent Events)流式传输场景中,频繁出现于 AI coding agent 工具链。属于高频率复现的网络层错误。分类:AI Coding Tools(MCP/SSE 连接在 AI coding 工具链中常见)。 (1 page)
  • GitHub Issues #29579 in anthropics/claude-code, open since Feb 28 2026, 150 comments. Labeled area:api + area:auth + bug + has_repro + platform:vscode/windows. Distinct from general quota exhaustion — this is incorrect rate-limiting during active sessions. Category: Anthropic API per approved mapping. Not covered by existing entries. (1 page)
  • GitHub issue #7827 from anthropics/claude-code repo. Fresh installation causes persistent auth failures across all methods. Phase 1: OAuth login appears successful but all AI requests timeout with 'API Error (Request timed out)'. Phase 2: Even when valid ANTHROPIC_API_KEY env var is set, Claude Code detects it but still forces OAuth browser auth, gets stuck in loops, shows 'Auth conflict' warning. Basic local commands (pwd) also timeout because they're incorrectly routed to API. Labels: area:auth, area:api, has repro, platform:windows. Severity: blocks entire tool usability. (1 page)
  • Issue #62272 on anthropics/claude-code: Directly contradicts user-configured retention policy. Area:core, data-loss, duplicate tags. 1 comment. Clear actionable bug affecting data persistence reliability. Low difficulty score since specific config path provides clear resolution target. (1 page)

Related technologies

  • Claude Code (782 pages)
  • OpenCode
  • OpenClaw (1 page)
  • MCP servers
  • Bedrock

Troubleshooting clusters

  • Authentication and organization access errors
  • Permission and file edit errors
  • Tool call and MCP failures
  • Quota and usage limit errors
  • Model routing and provider errors
  • Session hangs and stream failures

Latest pages in this category

Representative source-backed errors

These entries include public source URLs in the imported page body. Use them first when you need evidence for provider behavior, SDK regressions, or version-specific failures.

Safe debugging checklist

  • Do not paste API keys, tokens, cookies, private repository snippets, or customer data into public issues.
  • Keep a rollback path before changing credentials, billing limits, DNS, CI secrets, or production deploy settings.
  • Prefer official documentation and source-backed entries over broad guesses when the error affects paid APIs or production deploys.

Top fixes

High-intent troubleshooting topics

  • how to fix AI Coding Tools errors
  • AI Coding Tools error fix
  • AI Coding Tools troubleshooting
  • AI Coding Tools authentication failed
  • AI Coding Tools timeout
  • AI Coding Tools permission denied
  • AI Coding Tools deployment failed
AI Coding Tools Claude Code

Claude Code OAuth DNS Resolution Failure — auth.anthropic.com ENOTFOUND

Fix Claude Code OAuth login failures caused by DNS resolution failure of auth.anthropic.com Includes evidence for Claude Code troubleshooting demand.

getaddrinfo ENOTFOUND auth.anthropic.com — Claude Code OAuth login fails with timeout; auth.anthropic.com does not resolve via DNS, making authentication impossible
AI Coding Tools Claude Code

OAuth completes but Bearer token never sent to MCP server — Claude Code needs re-authentication

Fix Claude Code MCP OAuth flow where token acquisition appears successful but the server continues requesting authentication, requiring manual restart or re-login Includes evidence for Claude Code troubleshooting demand.

Claude Code OAuth authentication completes but MCP server stays in 'Needs authentication' state; Bearer token never sent to downstream server
AI Coding Tools Claude Code

Claude Code MCP Server Authorization Failed — OAuth & Keychain Fixes

Fix Claude Code MCP connection/auth failures caused by OAuth timeout, locked keychain, or DNS preventing auth endpoint reachability Includes evidence for Claude Code troubleshooting demand.

Authorization with the MCP server failed / Couldn't reach the MCP server — OAuth callback timeouts, macOS keychain locked, or DNS resolution blocking the Anthropic auth endpoint
AI Coding Tools Claude Code

Claude Code Auth Failed? Fix Authentication in 5 Minutes

Claude Code 用户遇到认证失败(OAuth token 过期或 API key 无效),需要在本地开发环境或无头服务器上重新配置身份验证以恢复编码能力。 Includes evidence for Claude Code troubleshooting demand.

Authentication failed. Run `claude auth login` to authenticate. / Error: 401 - {"error":{"type":"authentication_error","message":"invalid x-api-key"}}
AI Coding Tools Claude Code

Claude Code HTTP MCP Servers Require OAuth Silently Fail — No User Notification

Fix Claude Code MCP OAuth authentication failure where no browser opens and no tools appear despite correct configuration Includes evidence for Claude Code troubleshooting demand.

HTTP MCP servers requiring OAuth silently fail with no user notification — tools/list returns Unauthorized but Claude Code shows nothing; debug log reveals 'Redirection handling is disabled, skipping redirect'
AI Coding Tools Claude Code

Claude Code MCP Server -32000 Connection Closed — Stdio Transport Crash Debugging

Developer adds an MCP server to Claude Code but gets '-32000 Connection closed'; needs systematic troubleshooting to identify if it's missing binary, wrong Node version, env var drift, or stdout corruption corrupting JSON-RPC stream. Includes evidence for Claude Code troubleshooting demand.

MCP error -32000: Connection closed — MCP server process crashed at startup
AI Coding Tools Claude Code

Claude Code Session Limit Reset — Usage Quota Exhaustion Errors

Understand and fix Claude Code usage quota exhaustion; buy more credits or manage rolling limits Includes evidence for Claude Code troubleshooting demand.

You've hit your session limit · resets 3:45pm / You've hit your weekly limit · resets Mon 12:00am
AI Coding Tools Claude Code

Claude Code MCP Server OAuth Flow Fails — About Blank Redirect Loop on Desktop/Web UI

Developer adds custom MCP server to Claude Code Desktop/claude.ai but OAuth flow never initiates — browser opens about:blank creating infinite loop. CLI --transport http works but desktop/web GUI fails. Includes evidence for Claude Code troubleshooting demand.

MCP server failed to connect or authenticate (about:blank infinite loop)
AI Coding Tools Claude Code

Claude Code HTTP MCP Server OAuth Silent Failure — No User Notification

Troubleshoot Claude Code MCP servers that require OAuth but fail silently — no tools appear and no error message is shown to the user. Includes evidence for Claude Code troubleshooting demand.

[BUG] HTTP MCP servers requiring OAuth silently fail with no user notification
AI Coding Tools Claude Code

Fix Claude Code 529 Overloaded Error — Not a Rate Limit Problem

Developer sees Anthropic API Error 529 in Claude Code, needs to distinguish it from 429 rate limit and know when to wait vs when to troubleshoot locally. Includes evidence for Claude Code troubleshooting demand.

API Error: 529 — overloaded_error
AI Coding Tools LangChain

LangChain RateLimitError wrapping OpenAI 429 — excessive API calls per minute exceeded

Fix LangChain API rate limit errors caused by exceeding RPM/TPM limits from underlying providers like OpenAI, implementing proper retry logic with exponential backoff and token bucket rate limiting. Includes evidence for LangChain troubleshooting demand.

LangChainRateLimitError: Rate limit exceeded / RateLimitError: litellm.RateLimitError: OpenAIException - You exceeded your current quota
AI Coding Tools Claude Code

Claude Code fails connecting to MCP servers without Dynamic Client Registration — OAuth flow aborts with 403

Fix Claude Code MCP connection failure with OAuth providers (Auth0, AWS Cognito, Okta) that do not support RFC 7591 Dynamic Client Registration — find workaround or permanent fix for OAuth auth flow Includes evidence for Claude Code troubleshooting demand.

Dynamic client registration failed: HTTP 403 / No client info found / Claude Code ignores configured oauth.clientId in .mcp.json and attempts DCR anyway
AI Coding Tools Claude Code

Claude Code API Error 400: thinking blocks must remain as original response — claude-opus-4-8 incompatibility

Fix Claude Code Opus 4.8 API 400 error caused by thinking/redacted_thinking block modification during subsequent API calls Includes evidence for Claude Code troubleshooting demand.

API Error 400: messages.N.content.M: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.
AI Coding Tools Claude Code

Claude Code Login Pasting Auth Code Blocked by Terminal Paste Bracketing in WSL2

Authenticate Claude Code by pasting the OAuth verification code when the terminal has paste bracketing enabled (common in WSL2), which prevents code from being entered correctly Includes evidence for Claude Code troubleshooting demand.

Can't paste auth code into CLI app — stdin does not accept OAuth code when paste bracketing is enabled; WSL2 environment
AI Coding Tools Claude Code

Claude Code CLI MCP Connection Fails Due to Bun Runtime TCP Socket Failure

Resolve Claude Code CLI inability to connect to HTTP-based MCP servers caused by Bun runtime TCP socket failure Includes evidence for Claude Code troubleshooting demand.

FailedToOpenSocket error when connecting to HTTP MCP servers via Claude Code CLI; Bun runtime bundled in CLI binary fails at TCP socket level

Browse all AI Coding Tools troubleshooting pages

Continue through the full static archive for this hub. Every listed page is crawlable and keeps its existing canonical URL.

Browse all AI Coding Tools troubleshooting pages