claude-code - 💡(How to fix) Fix [BUG] Oauth Error - stuck, massive workload, can't log in :( [4 comments, 4 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#48659Fetched 2026-04-16 06:54:26
View on GitHub
Comments
4
Participants
4
Timeline
7
Reactions
4
Author
Timeline (top)
commented ×4labeled ×3

Error Message

OAuth Request Failed upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused

Code Example

OAuth Request Failed
upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused
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?

Problem logging in. Looks like a system wide error with Claude code. <img width="1358" height="699" alt="Image" src="https://github.com/user-attachments/assets/4dbe84b7-f647-465c-9d74-e7131df0635b" />

What Should Happen?

I should be able to log in.

Error Messages/Logs

OAuth Request Failed
upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused

Steps to Reproduce

try to log into claude code

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.109

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely related to a connection problem between Claude Code and the Anthropic API, and checking the API's status or configuring Claude Code to handle connection failures may help.

Guidance

  • Verify the Anthropic API is operational and not experiencing downtime, as the error message suggests a connection refusal.
  • Check the Claude Code configuration to see if there are any settings related to handling connection failures or timeouts that could be adjusted.
  • Consider testing the login functionality with a different network connection or environment to isolate if the issue is specific to the current setup.
  • Review the release notes for Claude Code version 2.1.109 to see if any changes related to API connections or error handling were introduced.

Example

No specific code example can be provided without more details on the Claude Code configuration or implementation.

Notes

The lack of information about the last working version and additional details limits the ability to provide a more targeted solution. The issue seems to be related to a regression, but without knowing what changed, it's challenging to pinpoint the exact cause.

Recommendation

Apply workaround: Given the information available, the best course of action seems to be to apply a workaround, such as configuring Claude Code to retry connections or to handle connection failures more gracefully, until more specific guidance or a fix can be determined.

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