claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Extra usage required for 1M context window [1 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#57756Fetched 2026-05-11 03:26:15
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5

Error Message

[{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:33:36.370Z"},{"error":"Error: ripgrep exited with code null\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:43:44.283Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:07:35.012Z"},{"error":"Error: ripgrep exited with code null\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:35.491Z"},{"error":"Error: ripgrep exited with code null\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:57.984Z"},{"error":"Error: EISDIR: illegal operation on a directory, read 'C:\claudecode\frontend\src\app\[locale]\demo'\n at NYH (B:/~BUN/root/src/entrypoints/cli.js:1625:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:54:06.961Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:17:30.796Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:18:02.552Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n at RV1 (B:/~BUN/root/src/entrypoints/cli.j…

Fix Action

Fix / Workaround

Errors

[{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:33:36.370Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:43:44.283Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:07:35.012Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:35.491Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:57.984Z"},{"error":"Error: EISDIR: illegal operation on a directory, read 'C:\\claudecode\\frontend\\src\\app\\[locale]\\demo'\n    at NYH (B:/~BUN/root/src/entrypoints/cli.js:1625:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:54:06.961Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n    at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:17:30.796Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n    at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:18:02.552Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.j…

Code Example

[{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:33:36.370Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:43:44.283Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:07:35.012Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:35.491Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:57.984Z"},{"error":"Error: EISDIR: illegal operation on a directory, read 'C:\\claudecode\\frontend\\src\\app\\[locale]\\demo'\n    at NYH (B:/~BUN/root/src/entrypoints/cli.js:1625:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:54:06.961Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n    at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:17:30.796Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n    at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:18:02.552Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.j…
RAW_BUFFERClick to expand / collapse

Bug Description "API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context"

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.132
  • Feedback ID: 20d77f85-402c-4347-a979-785f835cd161

Errors

[{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:33:36.370Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T04:43:44.283Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (89937 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 OQ7 (B:/~BUN/root/src/entrypoints/cli.js:4926:12991)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:07:35.012Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:35.491Z"},{"error":"Error: ripgrep exited with code null\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:714:914)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:53:57.984Z"},{"error":"Error: EISDIR: illegal operation on a directory, read 'C:\\claudecode\\frontend\\src\\app\\[locale]\\demo'\n    at NYH (B:/~BUN/root/src/entrypoints/cli.js:1625:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-08T05:54:06.961Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n    at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:17:30.796Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.js:526:1976)\n    at dispatch (B:/~BUN/root/src/entrypoints/cli.js:526:2652)","timestamp":"2026-05-08T07:18:02.552Z"},{"error":"Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\n    at m8 (B:/~BUN/root/src/entrypoints/cli.js:519:16637)\n    at SH (B:/~BUN/root/src/entrypoints/cli.js:519:16129)\n    at a4 (B:/~BUN/root/src/entrypoints/cli.js:519:32560)\n    at pK (B:/~BUN/root/src/entrypoints/cli.js:519:32151)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9255:12325)\n    at JH (B:/~BUN/root/src/entrypoints/cli.js:655:448)\n    at handleKeyDown (B:/~BUN/root/src/entrypoints/cli.js:658:2178)\n    at X (B:/~BUN/root/src/entrypoints/cli.js:657:509)\n    at RV1 (B:/~BUN/root/src/entrypoints/cli.j…

Note: Content was truncated.

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 [Bug] Anthropic API Error: Extra usage required for 1M context window [1 participants]