claude-code - 💡(How to fix) Fix [Bug] Excessive API usage with no response completion [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#45405Fetched 2026-04-09 08:06:11
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:36:02.386Z"},{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:36:56.593Z"},{"error":"Error: Was there a typo in the url or port?\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:37:13.545Z"},{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:37:28.884Z"},{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:39:40.940Z"},{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:41:29.013Z"},{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:43:35.244Z"},{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:45:41.419Z"},{"error":"Error: ECONNREFUSED\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN…

Code Example

[{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:36:02.386Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:36:56.593Z"},{"error":"Error: Was there a typo in the url or port?\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:37:13.545Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:37:28.884Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:39:40.940Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:41:29.013Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:43:35.244Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:45:41.419Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN
RAW_BUFFERClick to expand / collapse

Bug Description Claude code is being so slow to respond, while taking up massive amounts of usage, and not even responding in the end.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.96
  • Feedback ID: 37227829-8d3c-4414-a2a2-abcd2ca0a1dd

Errors

[{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:36:02.386Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:36:56.593Z"},{"error":"Error: Was there a typo in the url or port?\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:37:13.545Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:37:28.884Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:39:40.940Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:41:29.013Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:43:35.244Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T19:45:41.419Z"},{"error":"Error: ECONNREFUSED\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN…

Note: Content was truncated.

extent analysis

TL;DR

The most likely fix is to verify the URL and port used in the Claude code to ensure it is correct and the server is running.

Guidance

  • Check the URL and port used in the Claude code for any typos or incorrect configurations.
  • Verify that the server is running and listening on the specified port.
  • Review the error messages for any hints about the connection issue, such as "Was there a typo in the url or port?".
  • Consider checking the network connectivity and firewall settings to ensure they are not blocking the connection.

Example

No specific code snippet can be provided without more context, but reviewing the cli.js file at the mentioned lines (e.g., 105, 113) may help identify the issue.

Notes

The provided error messages suggest a connection refusal issue, which could be due to various reasons such as incorrect URL, port, or server availability. Without more information, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Verify the URL and port configuration, and check the server status to ensure it's running and accessible. This is a safe and reasonable first step to troubleshoot the connection issue.

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