Claude Code errors / Rate limit

API Error: Rate limit reached (stale cached plan after upgrade)

platform: Claude Code / category: Rate limit / code: 429 / versions: 2.1.92

Cause

Claude Code caches subscriptionType and rateLimitTier at login and never refreshes them, so after a plan upgrade the CLI still enforces old limits.

Fix

Clear the accessToken, refreshToken, expiresAt, subscriptionType, and rateLimitTier fields in ~/.claude/.credentials.json, then run 'claude login' to force a fresh OAuth flow. Verify the correct plan shows in the CLI header before resuming.

Source thread →

Part of the Automation Error Index — Claude Code errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem