claude-code - 💡(How to fix) Fix [Bug] Severe output throttling: extremely slow token generation rates [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#48412Fetched 2026-04-16 07:00:52
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"AxiosError: timeout of 5000ms exceeded\n at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n at iN.emit (node:events:519:28)\n at Timeout._onTimeout (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n at listOnTimeout (node:internal/timers:588:17)\n at process.processTimers (node:internal/timers:523:7)\n at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:33:31.205Z"},{"error":"Error: 1P event logging: 21 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at bC1.queueFailedEvents (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async bC1.doExport (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-14T12:38:56.453Z"},{"error":"AggregateError\n at bV.from (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:12663)\n at iN.emit (node:events:531:35)\n at Zz1.<computed> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n at ClientRequest.emit (node:events:519:28)\n at emitErrorEvent (node:_http_client:105:11)\n at TLSSocket.socketErrorListener (node:_http_client:518:5)\n at TLSSocket.emit (node:events:519:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:51:35.448Z"},{"error":"AggregateError\n at bV.from (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:12663)\n at iN.emit (node:events:531:35)\n at Zz1.<computed> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n at ClientRequest.emit (node:events:519:28)\n at emitErrorEvent (node:_http_client:105:11)\n at TLSSocket.socketErrorListener (node:_http_client:518:5)\n at TLSSocket.emit (node:events:519:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:52:13.657Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n at iN.emit (node:events:519:28)\n at Timeout._onTimeout (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n at listOnTimeout (node:internal/timers:588:17)\n at process.processTimers (node:internal/timers:523:7)\n at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T13:33:41.365Z"},{"error":"Error: 1P event logging: 19 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at bC1.queueFailedEvents (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async bC…

Root Cause

Bug Description The speed is heavily throttled, i am not able to get even 50 tokens of output in 15 mins. I spent 1hr 30mins to get only 4k tokens. I am a 200 MAX subsrciption user and I can't get a simple bug fixed in my codebase because its SO SLOW.

Code Example

[{"error":"AxiosError: timeout of 5000ms exceeded\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n    at iN.emit (node:events:519:28)\n    at Timeout._onTimeout (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n    at listOnTimeout (node:internal/timers:588:17)\n    at process.processTimers (node:internal/timers:523:7)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:33:31.205Z"},{"error":"Error: 1P event logging: 21 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-14T12:38:56.453Z"},{"error":"AggregateError\n    at bV.from (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:12663)\n    at iN.emit (node:events:531:35)\n    at Zz1.<computed> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n    at ClientRequest.emit (node:events:519:28)\n    at emitErrorEvent (node:_http_client:105:11)\n    at TLSSocket.socketErrorListener (node:_http_client:518:5)\n    at TLSSocket.emit (node:events:519:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:51:35.448Z"},{"error":"AggregateError\n    at bV.from (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:12663)\n    at iN.emit (node:events:531:35)\n    at Zz1.<computed> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n    at ClientRequest.emit (node:events:519:28)\n    at emitErrorEvent (node:_http_client:105:11)\n    at TLSSocket.socketErrorListener (node:_http_client:518:5)\n    at TLSSocket.emit (node:events:519:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:52:13.657Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n    at iN.emit (node:events:519:28)\n    at Timeout._onTimeout (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n    at listOnTimeout (node:internal/timers:588:17)\n    at process.processTimers (node:internal/timers:523:7)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T13:33:41.365Z"},{"error":"Error: 1P event logging: 19 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC…
RAW_BUFFERClick to expand / collapse

Bug Description The speed is heavily throttled, i am not able to get even 50 tokens of output in 15 mins. I spent 1hr 30mins to get only 4k tokens. I am a 200 MAX subsrciption user and I can't get a simple bug fixed in my codebase because its SO SLOW.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.1.107
  • Feedback ID: 95b72040-89a7-4807-9d4c-70ee781e4203

Errors

[{"error":"AxiosError: timeout of 5000ms exceeded\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n    at iN.emit (node:events:519:28)\n    at Timeout._onTimeout (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n    at listOnTimeout (node:internal/timers:588:17)\n    at process.processTimers (node:internal/timers:523:7)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:33:31.205Z"},{"error":"Error: 1P event logging: 21 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-14T12:38:56.453Z"},{"error":"AggregateError\n    at bV.from (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:12663)\n    at iN.emit (node:events:531:35)\n    at Zz1.<computed> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n    at ClientRequest.emit (node:events:519:28)\n    at emitErrorEvent (node:_http_client:105:11)\n    at TLSSocket.socketErrorListener (node:_http_client:518:5)\n    at TLSSocket.emit (node:events:519:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:51:35.448Z"},{"error":"AggregateError\n    at bV.from (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:108:7836)\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:12663)\n    at iN.emit (node:events:531:35)\n    at Zz1.<computed> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:1120)\n    at ClientRequest.emit (node:events:519:28)\n    at emitErrorEvent (node:_http_client:105:11)\n    at TLSSocket.socketErrorListener (node:_http_client:518:5)\n    at TLSSocket.emit (node:events:519:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T12:52:13.657Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at iN.<anonymous> (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n    at iN.emit (node:events:519:28)\n    at Timeout._onTimeout (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n    at listOnTimeout (node:internal/timers:588:17)\n    at process.processTimers (node:internal/timers:523:7)\n    at qQ6.request (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async tC1 (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-14T13:33:41.365Z"},{"error":"Error: 1P event logging: 19 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///home/harsh/.nvm/versions/node/v22.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC…

Note: Content was truncated.

extent analysis

TL;DR

Increase the timeout value to a higher number to prevent timeouts and allow the process to complete.

Guidance

  • Review the error messages, which indicate timeouts of 5000ms and 10000ms are being exceeded, suggesting the current timeout values are too low for the operation.
  • Consider increasing the timeout value in the @anthropic-ai/claude-code/cli.js file, specifically in the iN and bC1 functions, to a higher number to give the process more time to complete.
  • Check the network connection and server response times to ensure they are stable and not contributing to the timeouts.
  • If possible, optimize the code to reduce the time it takes to complete the operation, reducing the need for longer timeouts.

Example

No specific code example can be provided without modifying the existing codebase, but the idea would be to find where timeouts are set (e.g., timeout: 5000) and increase these values.

Notes

The provided information does not specify how to directly change the timeout values without modifying the @anthropic-ai/claude-code/cli.js file. It's also unclear if there are configuration options or environment variables that could be used to adjust these timeouts without altering the code.

Recommendation

Apply a workaround by increasing the timeout values in the code or exploring configuration options that might allow for adjustable timeouts, as directly upgrading to a fixed version is not mentioned as an option in the provided context.

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] Severe output throttling: extremely slow token generation rates [1 comments, 2 participants]