claude-code - 💡(How to fix) Fix [BUG] ConnectionRefused issue. Can't use AI at all on a PAID plan !

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…

Error Message

Error Messages/Logs

Unable to connect to API (ConnectionRefused) for 10 times (takes 3m) and then fails with an error. The terminal app I use is Konsole. But I get the same error with Ghostty and even in the TTY. So it's not related to that.

Code Example

`Unable to connect to API (ConnectionRefused)` for 10 times (takes 3m) and then fails with an error.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Before I installed claude (2 months ago) and I deleted after when I quit my job (using the bash commands on the official documentation). Then today I bought a new subscription and installed claude-code to realize it doesn't work at all on this computer. Yet on my laptop where I installed claude for the first time ever here it works...

It seems the issue comes in uninstalling claude, I guess. I deleted:

  • ~/.claude.json
  • ~/.claude/
  • ~/.config/claude/
  • ~/.local/bin/claude
  • ~/.local/share/claude/
  • ~/.local/state/claude/

Reinstalled claude I it still doesn't work. Btw, I don't have any keyring installed on this computer, nor bun.

Specs: <img width="882" height="435" alt="Image" src="https://github.com/user-attachments/assets/4386b137-ec32-4660-894a-6ca50267747b" />

Feedback from claude: cc-20260521-230755-d8c18f.zip

What Should Happen?

Using the AI to code...

Error Messages/Logs

`Unable to connect to API (ConnectionRefused)` for 10 times (takes 3m) and then fails with an error.

Steps to Reproduce

Use claude in a terminal and type anything anywhere. ON ALL MODELS.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

v2.1.147

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

The terminal app I use is Konsole. But I get the same error with Ghostty and even in the TTY. So it's not related to that.

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] ConnectionRefused issue. Can't use AI at all on a PAID plan !