Skip to content

[Bug] Request exceeds 5-hour token limit causing timeout #40504

Closed as not planned

Description

@sanvibyfish

Bug Description
[Image #1] This prompt reaches 100% of the 5-hour limit.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.85
  • Feedback ID: 68f23a3e-bd79-4da4-8b47-5ecf0236bdcc

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/sanvi/.local/share/claude/versions/2.1.85 (expected in multi-process scenarios)\n    at vp_ (/$bunfs/root/src/entrypoints/cli.js:2794:2168)\n    at yn6 (/$bunfs/root/src/entrypoints/cli.js:2794:1326)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T13:52:53.430Z"},{"error":"Error: Request was aborted.\n    at WV_ (/$bunfs/root/src/entrypoints/cli.js:1957:8412)\n    at next (native:1:11)\n    at aN9 (/$bunfs/root/src/entrypoints/cli.js:7557:7795)\n    at next (native:1:11)\n    at eN9 (/$bunfs/root/src/entrypoints/cli.js:7562:10609)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T13:56:11.872Z"},{"error":"MaxFileReadTokenExceededError: File content (14565 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at C59 (/$bunfs/root/src/entrypoints/cli.js:4537:23271)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T13:58:52.514Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T13:59:03.957Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at fC1 (/$bunfs/root/src/entrypoints/cli.js:2792:2084)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T21:40:11.165Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at fC1 (/$bunfs/root/src/entrypoints/cli.js:2792:2084)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T21:40:11.165Z"},{"error":"Error: 1P event logging: 1 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:397:2647)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:397:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T04:02:51.635Z"},{"error":"Error: {\"message\":\"Failed to export 1 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"397\",\"originalColumn\":\"1668\",\"line\":\"397\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 1 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (/$bunfs/root/src/entrypoints/cli.js:397:1668)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/src/entrypoints/cli.js:2740:27130)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:156:82048)\n    at ZG$ (/$bunfs/root/src/entrypoints/cli.js:156:82592)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:157:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T04:02:51.638Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at fC1 (/$bunfs/root/src/entrypoints/cli.js:2792:2084)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T04:03:01.631Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at fC1 (/$bunfs/root/src/entrypoints/cli.js:2792:2084)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T04:03:01.631Z"},{"error":"Error: 1P event logging: 2 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:397:2647)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:397:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T04:03:11.639Z"},{"error":"Error: {\"message\":\"Failed to export 2 events (code=FailedToOpenSocket, Was there a typo in the url or port?)\",\"originalLine\":\"397\",\"originalColumn\":\"1668\",\"line\":\"397\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 2 events (code=FailedToOpenSocket, Was there a typo in the url or port?)\\n    at doExport (/$bunfs/root/src/ent…

Note: Content was truncated.

Activity

  1. github-actions commented on Mar 29, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [Bug] Rate limit errors with unexplained session quota consumption #40445
    2. You've hit your limit · resets 8pm (Europe/Bucharest) #38861
    3. You've hit your limit · resets 11am (America/Chicago) #38802

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. TheAuditorTool commented on Mar 29, 2026

    @TheAuditorTool

    Yeh, im hitting abnormal usage too...
    Normally 1x 5 hour limit is 8% for my total week.. During promo it was 5-6%...
    Today? Its 14 fking percent... Thats HALF my usage per week...
    What the actual fk is going on here???????
    Max20 here...

  3. marlvinvu commented on Apr 2, 2026

    @marlvinvu

    A user in #40584 may have found the root cause for your rate limit issue. Two findings:

    1. The "Rate limit reached" error is generated CLIENT-SIDE by Claude Code, not by the Anthropic API. Evidence: model: "", input_tokens: 0, output_tokens: 0 — no request was ever sent to the API. The client-side rate limiter counts the entire context size against the token budget, so large/long sessions get permanently blocked even when the API is fully available.
    2. The client-side rate limiter MULTIPLIES estimated context tokens by the number of concurrent requests. So 3 subagents × 400K context = 1.2M tokens counted against budget — even though the context is cached and shared. This means as your session grows, fewer concurrent agents can run before hitting the false limit.

    See #40584 for the full analysis with log evidence from two independent occurrences.

  4. github-actions commented on May 10, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  5. github-actions commented on Jun 30, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  6. locked as resolved and limited conversation to collaborators on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:costbugSomething isn't workingplatform:macosIssue specifically occurs on macOSstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions