claude-code - 💡(How to fix) Fix 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. [1 comments, 2 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#48781Fetched 2026-04-16 06:51:08
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"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_011Ca6D6rf4MCMtM7gur72MZ"}\n at cq.generate (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52350)\n at aL.makeStatusError (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n at aL.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-15T20:44:47.064Z"},{"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_011Ca6Dic9vibq2XqyLR5wtX"}\n at cq.generate (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52350)\n at aL.makeStatusError (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n at aL.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-15T20:52:51.957Z"}]

Code Example

[{"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_011Ca6D6rf4MCMtM7gur72MZ\"}\n    at cq.generate (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52350)\n    at aL.makeStatusError (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at aL.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-15T20:44:47.064Z"},{"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_011Ca6Dic9vibq2XqyLR5wtX\"}\n    at cq.generate (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52350)\n    at aL.makeStatusError (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at aL.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-15T20:52:51.957Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description All tokens gone, says my 5h limit reached after a session of 500k, and same just before this, session of 700k tokens and sayd my 5h limit reached. while erlier i could do millions of tokens in sessions.

Is there a way to see how much tokens subsessions have used?

Environment Info

  • Platform: linux
  • Terminal: konsole
  • Version: 2.1.109
  • Feedback ID: a1261876-639a-4eb4-a12e-4b8b86ed9bb6

Errors

[{"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_011Ca6D6rf4MCMtM7gur72MZ\"}\n    at cq.generate (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52350)\n    at aL.makeStatusError (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at aL.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-15T20:44:47.064Z"},{"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_011Ca6Dic9vibq2XqyLR5wtX\"}\n    at cq.generate (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52350)\n    at aL.makeStatusError (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at aL.makeRequest (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-15T20:52:51.957Z"}]

extent analysis

TL;DR

The issue is likely due to exceeding the rate limit, and a workaround could be to implement a delay between requests or split sessions into smaller chunks.

Guidance

  • The error messages indicate a rate limit error, suggesting that the number of requests is exceeding the allowed limit within a certain time frame.
  • To verify the rate limit, check the documentation or contact support to understand the specific limits and any burst limits that may apply.
  • Consider implementing a delay between requests or splitting sessions into smaller chunks to stay within the rate limit.
  • Reviewing the code at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52350 and file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652 may provide insights into how requests are being made and how to optimize them.

Example

No specific code example can be provided without more context, but a general approach to rate limiting might involve using a library or function that adds a delay between requests, such as setTimeout in JavaScript.

Notes

The exact solution depends on the specifics of the rate limit (e.g., tokens per hour, burst limits) and how the sessions are structured. Without more information on these details, only general guidance can be provided.

Recommendation

Apply a workaround by implementing rate limiting or delaying requests, as the issue seems to stem from exceeding the account's rate limit, and there's no clear indication of a version upgrade that would fix this issue.

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