claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Dedup stage crash on /ultrareview with no findings and misleading billing [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#54612Fetched 2026-04-30 06:40:52
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×6commented ×1cross-referenced ×1

Error Message

[{"error":"MaxFileReadTokenExceededError: File content (55257 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 Su7 (B:/~BUN/root/src/entrypoints/cli.js:4908:12810)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:03:39.681Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readSync (unknown)\n at readSync (B:/~BUN/root/src/entrypoints/cli.js:55:1227)\n at btH (B:/~BUN/root/src/entrypoints/cli.js:127:10601)\n at xm (B:/~BUN/root/src/entrypoints/cli.js:128:181)\n at yG (B:/~BUN/root/src/entrypoints/cli.js:130:54)\n at W2A (B:/~BUN/root/src/entrypoints/cli.js:9030:8673)\n at j (B:/~BUN/root/src/entrypoints/cli.js:9030:7826)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9030:8220)\n at B2 (B:/~BUN/root/src/entrypoints/cli.js:517:63724)\n at DDH (B:/~BUN/root/src/entrypoints/cli.js:517:76931)","timestamp":"2026-04-29T08:12:42.108Z"},{"error":"Error: Request was aborted.\n at q0q (B:/~BUN/root/src/entrypoints/cli.js:5491:8020)\n at f (B:/~BUN/root/src/entrypoints/cli.js:279:16397)\n at abort (unknown)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2714:7656)\n at abort (unknown)\n at T (B:/~BUN/root/src/entrypoints/cli.js:9222:19026)\n at N (B:/~BUN/root/src/entrypoints/cli.js:9222:19242)\n at vt6 (B:/~BUN/root/src/entrypoints/cli.js:536:32754)\n at handleTerminalFocus (B:/~BUN/root/src/entrypoints/cli.js:542:2039)\n at m21 (B:/~BUN/root/src/entrypoints/cli.js:540:1997)","timestamp":"2026-04-29T08:19:02.330Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:119:3321)\n at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n at async uo6 (B:/~BUN/root/src/entrypoints/cli.js:465:4271)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:22.366Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: ECONNREFUSED\n at Yw9 (B:/~BUN/root/src/entrypoints/cli.js:2823:17142)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:32.301Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: ECONNREFUSED\n at Yw9 (B:/~BUN/root/src/entrypoints/cli.js:2823:17142)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:32.301Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\kaled\AppData\Local\Temp\claude\C--Users-kaled-DBOC---Version-1\be89957b-6dab-48ee-83bc-2db9834a59d8\tasks\a4e8c8d5dfd656e6c.output'\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8754:299)","timestamp":"2026-04-29T08:21:48.346Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:119:3321)\n at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:14:52.794Z"}]

Code Example

[{"error":"MaxFileReadTokenExceededError: File content (55257 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 Su7 (B:/~BUN/root/src/entrypoints/cli.js:4908:12810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:03:39.681Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readSync (unknown)\n    at readSync (B:/~BUN/root/src/entrypoints/cli.js:55:1227)\n    at btH (B:/~BUN/root/src/entrypoints/cli.js:127:10601)\n    at xm (B:/~BUN/root/src/entrypoints/cli.js:128:181)\n    at yG (B:/~BUN/root/src/entrypoints/cli.js:130:54)\n    at W2A (B:/~BUN/root/src/entrypoints/cli.js:9030:8673)\n    at j (B:/~BUN/root/src/entrypoints/cli.js:9030:7826)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9030:8220)\n    at B2 (B:/~BUN/root/src/entrypoints/cli.js:517:63724)\n    at DDH (B:/~BUN/root/src/entrypoints/cli.js:517:76931)","timestamp":"2026-04-29T08:12:42.108Z"},{"error":"Error: Request was aborted.\n    at q0q (B:/~BUN/root/src/entrypoints/cli.js:5491:8020)\n    at f (B:/~BUN/root/src/entrypoints/cli.js:279:16397)\n    at abort (unknown)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2714:7656)\n    at abort (unknown)\n    at T (B:/~BUN/root/src/entrypoints/cli.js:9222:19026)\n    at N (B:/~BUN/root/src/entrypoints/cli.js:9222:19242)\n    at vt6 (B:/~BUN/root/src/entrypoints/cli.js:536:32754)\n    at handleTerminalFocus (B:/~BUN/root/src/entrypoints/cli.js:542:2039)\n    at m21 (B:/~BUN/root/src/entrypoints/cli.js:540:1997)","timestamp":"2026-04-29T08:19:02.330Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:119:3321)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at async uo6 (B:/~BUN/root/src/entrypoints/cli.js:465:4271)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:22.366Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: ECONNREFUSED\n    at Yw9 (B:/~BUN/root/src/entrypoints/cli.js:2823:17142)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:32.301Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: ECONNREFUSED\n    at Yw9 (B:/~BUN/root/src/entrypoints/cli.js:2823:17142)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:32.301Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\kaled\\AppData\\Local\\Temp\\claude\\C--Users-kaled-DBOC---Version-1\\be89957b-6dab-48ee-83bc-2db9834a59d8\\tasks\\a4e8c8d5dfd656e6c.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8754:299)","timestamp":"2026-04-29T08:21:48.346Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:119:3321)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:14:52.794Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Three consecutive /ultrareview runs on the same PR all crashed at the dedup stage with no findings emitted. Each was billed as Extra Usage.

  • Repo: kale222/dboc-v1 (private)
  • PR: #5 — 62 files, 2,418 insertions, 1 deletion (Recharts wrapper package)
  • Claude Code version: 2.1.123
  • OS: Windows 11
  • GitHub App: Claude GitHub App installed, scoped to this repo
  • Auth: gh CLI authenticated, repo, workflow, read:org, gist scopes

Session IDs (all three crashed at the dedup stage):

  • 01FyTddvPzs8gscK31MPVX8T
  • 014UYnjJNmWoZXRZrPD3VzBj
  • 019Lqber8Zx5ptW9uuKYzPGH

Error returned to client (identical for all three): {"error":"Review crashed before producing findings. See session logs for details."}

Expected: Either the review completes and emits findings, OR a clean error explaining what failed (cap exceeded, oversized diff, etc.). The current generic crash message gives no actionable signal.

Impact: Three Extra Usage charges for zero output. Refund request alongside this report.

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.123
  • Feedback ID: 3f3fc21b-185d-47ee-a3f8-c4e10ab98111

Errors

[{"error":"MaxFileReadTokenExceededError: File content (55257 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 Su7 (B:/~BUN/root/src/entrypoints/cli.js:4908:12810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:03:39.681Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readSync (unknown)\n    at readSync (B:/~BUN/root/src/entrypoints/cli.js:55:1227)\n    at btH (B:/~BUN/root/src/entrypoints/cli.js:127:10601)\n    at xm (B:/~BUN/root/src/entrypoints/cli.js:128:181)\n    at yG (B:/~BUN/root/src/entrypoints/cli.js:130:54)\n    at W2A (B:/~BUN/root/src/entrypoints/cli.js:9030:8673)\n    at j (B:/~BUN/root/src/entrypoints/cli.js:9030:7826)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9030:8220)\n    at B2 (B:/~BUN/root/src/entrypoints/cli.js:517:63724)\n    at DDH (B:/~BUN/root/src/entrypoints/cli.js:517:76931)","timestamp":"2026-04-29T08:12:42.108Z"},{"error":"Error: Request was aborted.\n    at q0q (B:/~BUN/root/src/entrypoints/cli.js:5491:8020)\n    at f (B:/~BUN/root/src/entrypoints/cli.js:279:16397)\n    at abort (unknown)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2714:7656)\n    at abort (unknown)\n    at T (B:/~BUN/root/src/entrypoints/cli.js:9222:19026)\n    at N (B:/~BUN/root/src/entrypoints/cli.js:9222:19242)\n    at vt6 (B:/~BUN/root/src/entrypoints/cli.js:536:32754)\n    at handleTerminalFocus (B:/~BUN/root/src/entrypoints/cli.js:542:2039)\n    at m21 (B:/~BUN/root/src/entrypoints/cli.js:540:1997)","timestamp":"2026-04-29T08:19:02.330Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:119:3321)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at async uo6 (B:/~BUN/root/src/entrypoints/cli.js:465:4271)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:22.366Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: ECONNREFUSED\n    at Yw9 (B:/~BUN/root/src/entrypoints/cli.js:2823:17142)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:32.301Z"},{"error":"Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: ECONNREFUSED\n    at Yw9 (B:/~BUN/root/src/entrypoints/cli.js:2823:17142)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:19:32.301Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\kaled\\AppData\\Local\\Temp\\claude\\C--Users-kaled-DBOC---Version-1\\be89957b-6dab-48ee-83bc-2db9834a59d8\\tasks\\a4e8c8d5dfd656e6c.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8754:299)","timestamp":"2026-04-29T08:21:48.346Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:119:3321)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:14:52.794Z"}]

extent analysis

TL;DR

The most likely fix is to address the MaxFileReadTokenExceededError by optimizing file reading or adjusting the offset and limit parameters.

Guidance

  1. Verify file size and content: Check the size of the files being processed and ensure they are within the allowed limits.
  2. Optimize file reading: Consider using streaming or chunking to read large files instead of loading the entire file into memory.
  3. Adjust offset and limit parameters: If possible, adjust the offset and limit parameters to read specific portions of the file instead of the whole file.
  4. Check for directory operations: Ensure that the code is not attempting to read or write to directories instead of files, which could cause EISDIR errors.
  5. Investigate network connectivity: Verify that the system has stable network connectivity to prevent ECONNREFUSED and timeout errors.

Example

No specific code example can be provided without more context, but consider using a library like fs-extra to handle file operations and axios to handle HTTP requests with retries and timeouts.

Notes

The provided error logs indicate multiple issues, including file size limits, directory operations, and network connectivity problems. Addressing these issues may require a combination of code changes and infrastructure adjustments.

Recommendation

Apply a workaround by optimizing file reading and adjusting parameters to prevent exceeding file size limits, as this is the most prominent error in the logs.

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: Dedup stage crash on /ultrareview with no findings and misleading billing [1 comments, 2 participants]