claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Out of Extra Usage Despite Available Weekly Limits [3 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45018Fetched 2026-04-09 08:15:15
View on GitHub
Comments
3
Participants
4
Timeline
12
Reactions
0
Timeline (top)
cross-referenced ×4labeled ×4commented ×3closed ×1

Error Message

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n at Module.readdirSync (node:fs:1507:26)\n at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n at fX (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n at Object.readdirSync (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n at C01 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4279\n at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n at Ih2 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-04-08T04:51:44.925Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/toantruong/.claude/skills'\n at Module.readdirSync (node:fs:1507:26)\n at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n at fX (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n at Object.readdirSync (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n at C01 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4322\n at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n at Ih2 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-04-08T04:51:44.925Z"},{"error":"Error: LSP server plugin:rust-analyzer-lsp:rust-analyzer crashed with exit code 1\n at ChildProcess.<anonymous> (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1607:21510)\n at ChildProcess.emit (node:events:524:28)\n at ChildProcess.emit (node:domain:489:12)\n at ChildProcess._handle.onexit (node:internal/child_process:293:12)","timestamp":"2026-04-08T04:51:46.318Z"},{"error":"Error: Request was aborted.\n at XR.makeRequest (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:168:3940)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2026-04-08T04:51:51.897Z"}]

Code Example

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at Module.readdirSync (node:fs:1507:26)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at fX (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n    at Object.readdirSync (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at C01 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4279\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n    at Ih2 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-04-08T04:51:44.925Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/toantruong/.claude/skills'\n    at Module.readdirSync (node:fs:1507:26)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at fX (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n    at Object.readdirSync (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at C01 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4322\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n    at Ih2 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-04-08T04:51:44.925Z"},{"error":"Error: LSP server plugin:rust-analyzer-lsp:rust-analyzer crashed with exit code 1\n    at ChildProcess.<anonymous> (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1607:21510)\n    at ChildProcess.emit (node:events:524:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at ChildProcess._handle.onexit (node:internal/child_process:293:12)","timestamp":"2026-04-08T04:51:46.318Z"},{"error":"Error: Request was aborted.\n    at XR.makeRequest (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:168:3940)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2026-04-08T04:51:51.897Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Current session 68% used, Weekly limits 34% used but  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZqispMy5rmwAMyURf8Xn"}

Environment Info

  • Platform: darwin
  • Terminal: pycharm
  • Version: 2.1.17
  • Feedback ID: a4e36712-9088-4246-a594-5858669ee290

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at Module.readdirSync (node:fs:1507:26)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at fX (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n    at Object.readdirSync (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at C01 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4279\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n    at Ih2 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-04-08T04:51:44.925Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/toantruong/.claude/skills'\n    at Module.readdirSync (node:fs:1507:26)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at fX (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34782)\n    at Object.readdirSync (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at C01 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:369)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1537:4322\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)\n    at Ih2 (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:4362)\n    at file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4842:6961\n    at q (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6807)","timestamp":"2026-04-08T04:51:44.925Z"},{"error":"Error: LSP server plugin:rust-analyzer-lsp:rust-analyzer crashed with exit code 1\n    at ChildProcess.<anonymous> (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1607:21510)\n    at ChildProcess.emit (node:events:524:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at ChildProcess._handle.onexit (node:internal/child_process:293:12)","timestamp":"2026-04-08T04:51:46.318Z"},{"error":"Error: Request was aborted.\n    at XR.makeRequest (file:///Users/toantruong/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:168:3940)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2026-04-08T04:51:51.897Z"}]

extent analysis

TL;DR

The most likely fix is to address the "You're out of extra usage" error by adding more usage at claude.ai/settings/usage.

Guidance

  • Check the usage limits and add more usage as suggested in the error message to resolve the "You're out of extra usage" error.
  • Investigate the ENOENT: no such file or directory errors, which may be related to missing directories or files in the /Library/Application Support/ClaudeCode/.claude/skills or /Users/toantruong/.claude/skills paths.
  • Consider restarting the application or checking the LSP server plugin configuration to resolve the rust-analyzer-lsp crash error.
  • Verify that the request is not being aborted due to a timeout or other issue, as indicated by the "Request was aborted" error.

Example

No code snippet is provided as the issue is more related to configuration and usage limits.

Notes

The provided errors seem to be unrelated to each other, with one being a usage limit error, another being a file not found error, and the last two being related to the LSP server plugin and a request abort. Resolving each error may require different approaches.

Recommendation

Apply the workaround by adding more usage at claude.ai/settings/usage to resolve the immediate "You're out of extra usage" error, and then investigate the other errors separately.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING