claude-code - 💡(How to fix) Fix You've hit your limit · resets 6pm (Europe/London) [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#49193Fetched 2026-04-17 08:48:15
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

[{"error":"McpToolCallError: Timeout waiting after 1000ms\n at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T12:04:37.818Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T12:04:37.818Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:20:22.752Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:20:22.752Z"},{"error":"MaxFileReadTokenExceededError: File content (40117 tokens) exceeds maximum allowed tokens (25000). 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 UO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:21:04.518Z"},{"error":"MaxFileReadTokenExceededError: File content (40117 tokens) exceeds maximum allowed tokens (25000). 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 UO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:25:27.063Z"},{"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_011Ca7YSSdTVrANyU8BRRPup"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52491)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:38:57.204Z"},{"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_011Ca7bjPP54gCeCs413s8FE"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52491)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T14:22:08.417Z"}]

Code Example

[{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T12:04:37.818Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T12:04:37.818Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:20:22.752Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:20:22.752Z"},{"error":"MaxFileReadTokenExceededError: File content (40117 tokens) exceeds maximum allowed tokens (25000). 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 UO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:21:04.518Z"},{"error":"MaxFileReadTokenExceededError: File content (40117 tokens) exceeds maximum allowed tokens (25000). 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 UO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:25:27.063Z"},{"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_011Ca7YSSdTVrANyU8BRRPup\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52491)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:38:57.204Z"},{"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_011Ca7bjPP54gCeCs413s8FE\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52491)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T14:22:08.417Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description After working for a couple of hours in a single session, I noticed that updating just one HTML file consumed more than half of the session token. This has occurred for the third time in two days.

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 2.1.109
  • Feedback ID: 65d4f745-ce4d-4c55-b7a8-9e51a1914501

Errors

[{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T12:04:37.818Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T12:04:37.818Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:20:22.752Z"},{"error":"McpToolCallError: Timeout waiting after 1000ms\n    at TNK (/$bunfs/root/src/entrypoints/cli.js:1775:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:20:22.752Z"},{"error":"MaxFileReadTokenExceededError: File content (40117 tokens) exceeds maximum allowed tokens (25000). 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 UO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:21:04.518Z"},{"error":"MaxFileReadTokenExceededError: File content (40117 tokens) exceeds maximum allowed tokens (25000). 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 UO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:25:27.063Z"},{"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_011Ca7YSSdTVrANyU8BRRPup\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52491)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:38:57.204Z"},{"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_011Ca7bjPP54gCeCs413s8FE\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52491)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T14:22:08.417Z"}]

extent analysis

TL;DR

The issue is likely due to exceeding the rate limit or maximum allowed tokens when updating an HTML file, and a workaround could be to optimize file size or usage of tokens.

Guidance

  • The MaxFileReadTokenExceededError suggests that the file content exceeds the maximum allowed tokens (25000), so consider using offset and limit parameters to read specific portions of the file.
  • The 429 rate_limit_error indicates that the request would exceed the account's rate limit, so try reducing the frequency of requests or waiting for some time before making the next request.
  • Review the file size and content to optimize its structure and reduce the number of tokens used.
  • Consider implementing a retry mechanism with a delay to handle rate limit errors.

Example

No specific code example can be provided without more context, but optimizing file size or implementing a retry mechanism could look like:

// Pseudo-code example of a retry mechanism
function makeRequestWithRetry(maxRetries, delay) {
  let retries = 0;
  while (retries < maxRetries) {
    try {
      // Make the request
      return;
    } catch (error) {
      if (error.type === 'rate_limit_error') {
        retries++;
        await new Promise(resolve => setTimeout(resolve, delay));
      } else {
        throw error;
      }
    }
  }
  throw new Error('Max retries exceeded');
}

Notes

The provided solution is based on the assumption that the issue is related to rate limiting or token limits. Without more information about the specific use case or requirements, it's difficult to provide a more tailored solution.

Recommendation

Apply a workaround by optimizing file size and usage of tokens, and consider implementing a retry mechanism to handle rate limit errors. This approach can help mitigate the issue without requiring significant changes to the underlying system.

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

claude-code - 💡(How to fix) Fix You've hit your limit · resets 6pm (Europe/London) [1 comments, 2 participants]