claude-code - 💡(How to fix) Fix login successful but when trying a prompt i get error... [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#51935Fetched 2026-04-23 07:40:58
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: Request was aborted.\n at CY$ (B:/~BUN/root/src/entrypoints/cli.js:5359:7866)\n at A (B:/~BUN/root/src/entrypoints/cli.js:425:17823)\n at abort (unknown)\n at jJH (B:/~BUN/root/src/entrypoints/cli.js:8483:7349)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8433:4713)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:641:9218)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:547:4981)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:547:4155)\n at emit (B:/~BUN/root/src/entrypoints/cli.js:487:17325)\n at Us4 (B:/~BUN/root/src/entrypoints/cli.js:520:1499)","timestamp":"2026-04-22T11:19:14.525Z"},{"error":"Error: Connection error.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4056)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T11:24:34.145Z"}]

Code Example

[{"error":"Error: Request was aborted.\n    at CY$ (B:/~BUN/root/src/entrypoints/cli.js:5359:7866)\n    at A (B:/~BUN/root/src/entrypoints/cli.js:425:17823)\n    at abort (unknown)\n    at jJH (B:/~BUN/root/src/entrypoints/cli.js:8483:7349)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8433:4713)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:641:9218)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:547:4981)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:547:4155)\n    at emit (B:/~BUN/root/src/entrypoints/cli.js:487:17325)\n    at Us4 (B:/~BUN/root/src/entrypoints/cli.js:520:1499)","timestamp":"2026-04-22T11:19:14.525Z"},{"error":"Error: Connection error.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4056)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T11:24:34.145Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description login successful but when trying a prompt i get error message Unable to connect to API (ConnectionRefused)

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.117
  • Feedback ID: 222551fb-9bae-4ad4-9dd2-cf87c7dc0927

Errors

[{"error":"Error: Request was aborted.\n    at CY$ (B:/~BUN/root/src/entrypoints/cli.js:5359:7866)\n    at A (B:/~BUN/root/src/entrypoints/cli.js:425:17823)\n    at abort (unknown)\n    at jJH (B:/~BUN/root/src/entrypoints/cli.js:8483:7349)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8433:4713)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:641:9218)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:547:4981)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:547:4155)\n    at emit (B:/~BUN/root/src/entrypoints/cli.js:487:17325)\n    at Us4 (B:/~BUN/root/src/entrypoints/cli.js:520:1499)","timestamp":"2026-04-22T11:19:14.525Z"},{"error":"Error: Connection error.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4056)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T11:24:34.145Z"}]

extent analysis

TL;DR

The issue is likely due to a connection refusal to the API, and checking the API endpoint and network connectivity may help resolve the issue.

Guidance

  • Verify that the API endpoint is correctly configured and accessible.
  • Check the network connectivity and firewall settings to ensure that the connection to the API is not being blocked.
  • Review the error messages to identify any specific patterns or clues that may indicate the root cause of the connection refusal.
  • Consider testing the API connection using a tool like curl or a web browser to isolate the issue.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue may be related to a temporary network issue or a misconfiguration of the API endpoint. Further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Check the API endpoint and network connectivity to resolve the connection refusal issue, as the root cause is likely related to a configuration or network problem rather than a version 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