Anthropic API Usage Limit Error Triggered Incorrectly

Resolved 💬 3 comments Opened Oct 1, 2025 by honda05 Closed Oct 4, 2025

Bug Description
show usage limit error when usage has not acctually reached the limit

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.80
  • Feedback ID: 5cfcd4f2-5c54-4716-af28-1a6bb55fe699

Errors

[{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error A complete log of this run can be found in: /Users/hondatsutomu/.npm/_logs/2025-10-01T04_16_58_545Z-debug-0.log\n    at YG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1653:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3364:10962","timestamp":"2025-10-01T04:16:58.692Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CTfqEgJiHVE3VKxQr4Za6\"}\n    at D6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:936:2581)\n    at sP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n    at sP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async TPB.uG1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:24691)\n    at async uG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:13705)\n    at async TPB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:24542)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:19524\n    at async ON0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:5164)\n    at async Z01 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:19494)","timestamp":"2025-10-01T04:17:01.675Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CTfqrXKxqiaGar7jSYaNT\"}\n    at D6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:936:2581)\n    at sP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n    at sP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async TPB.uG1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:24691)\n    at async uG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:13705)\n    at async TPB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:24542)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:19524\n    at async ON0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:5164)\n    at async Z01 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1857:19494)","timestamp":"2025-10-01T04:25:07.837Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error A complete log of this run can be found in: /Users/hondatsutomu/.npm/_logs/2025-10-01T04_25_24_978Z-debug-0.log\n    at YG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1653:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3364:10962","timestamp":"2025-10-01T04:25:25.706Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthrop

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗