claude-code - 💡(How to fix) Fix [Bug] Excessive token consumption on basic messages [2 comments, 3 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#49108Fetched 2026-04-17 08:50:39
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2cross-referenced ×1

Error Message

[{"error":"Error: Request was aborted.\n at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n at next (native:1:11)\n at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n at next (native:1:11)\n at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T10:44:30.538Z"}]

Code Example

[{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T10:44:30.538Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I have just send two messages to claude and I have 20% of usage gone. This is getting ridiculous!

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.109
  • Feedback ID: 9627cdc7-1d2f-4209-8d6b-e528bf6f1a5f

Errors

[{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T10:44:30.538Z"}]

extent analysis

TL;DR

The issue might be related to a rate limiting or request abortion issue, and checking the request frequency or payload size could help mitigate the problem.

Guidance

  • Review the code at cli.js:1290:12508 to understand the request abortion logic and potential rate limiting factors.
  • Verify if the error occurs consistently when sending multiple messages in a short time frame, which could indicate a rate limiting issue.
  • Check the payload size of the messages being sent, as large payloads could be causing the request to be aborted.
  • Investigate if there are any platform-specific (darwin) or terminal-specific (iTerm.app) configurations that could be contributing to the issue.

Notes

The provided error message suggests a request abortion issue, but without more context about the code or the specific requests being made, it's difficult to provide a more targeted solution.

Recommendation

Apply workaround: Implement a delay between sending messages or reduce the payload size to see if it mitigates the issue, as this could help avoid rate limiting or request abortion.

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