[BUG] OAuth error: timeout of 15000ms exceeded

Open 💬 37 comments Opened Mar 11, 2026 by Hydrozyk

Preflight Checklist

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

What's Wrong?

Multiple workstations report OAuth error: timeout of 15000ms exceeded on /login for claude code command line. This happens after pasting authentication token from browser

What Should Happen?

Normal login

Error Messages/Logs

Steps to Reproduce

In claude code command line without GUI /login produces OAuth error: timeout of 15000ms exceeded

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.72

Claude Code Version

2.1.72

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

37 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/33214
  2. https://github.com/anthropics/claude-code/issues/33122
  3. https://github.com/anthropics/claude-code/issues/9376

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

paulocoutinhox · 4 months ago

I reverted plugin from 2.1.72 to 2.1.71. Anthropic is making a lot of mistake and recent versions stop works.

powerman · 4 months ago

I've tried stable v2.1.58 - instead of 15000ms timeout as in latest version I get "OAuth error: Request failed with status code 500".

tsungshenglai · 4 months ago

Claude Code version: stable, 2.1.71 and 2.1.72 still have the same issue here.
OAuth error: timeout of 15000ms exceeded
Account: Claude Max

Sometimes the webpage shows the following messages and the code is not shown.

Build something great
You’re all set up for Claude Code.
You can now close this window.

octavieploye · 4 months ago

same issue here,same symptoms: In some attempts, the OAuth page does generate an authorization code, but Claude Code times out before I can copy and paste it back into the terminal.

When I finally paste the code, Claude Code has already printed a timeout error (for example, OAuth error: timeout of 15000ms exceeded) and rejects the code as if the flow had expired.

LeventErtoz · 4 months ago

same issue here. authentication link opens in browser. Authorize button is slow to respond but eventually works. As soon as browser screen turns to "Build something great", at the exact same time the console says timeout exceeded (the same message as in this bug). Using Ubuntu LTS 24

garyffh · 4 months ago

Experiencing the same issue on Windows 10, Claude Code version 2.1.72. The final step of the login flow times out waiting for the server response. Tried approximately 10 times without success. The browser and email steps complete fine but the server confirmation exceeds the timeout window.

acriptis · 4 months ago

The same for me mostly, but sometimes I got 500 status code.

By the way, Cluade itself:
<img width="761" height="665" alt="Image" src="https://github.com/user-attachments/assets/fbb841c0-9c7f-4848-a227-fbf2b3dbd10f" />
Have anybody already tried to patch the binary? =)

Ada-lave · 4 months ago

same

jerin081-zuper · 4 months ago

try /logout and then /login again it worked for me

vkrasovskiy-playq · 4 months ago

same here. windows 10.

Duvet05 · 4 months ago

Same issue on EndeavourOS (Arch-based), Lima, Peru. Claude Code 2.1.72, installed via npm + nvm.

Environment:

  • OS: EndeavourOS / kernel 6.19.6-arch1-1
  • Node: v22.14.0 (nvm)
  • Shell: bash 5.3.9
  • Can log in via claude.ai web browser ✅
  • /login in CLI fails with OAuth error: timeout of 15000ms exceeded

Workaround confirmed working for Linux/nvm users:

# Find the file
CLI=$(find ~/.nvm/versions/node -name 'cli.js' -path '*claude-code*')
echo "Patching: $CLI"

# Apply the timeout fix
sed -i 's/timeout:15000/timeout:45000/g' "$CLI"
sed -i 's/AbortSignal.timeout(15000)/AbortSignal.timeout(45000)/g' "$CLI"

After patching, /login completes successfully. This confirms the issue is not specific to Windows — it affects Linux users in Latin America as well, likely due to regional latency on the OAuth callback endpoint.

mvarenitsyn · 4 months ago
CLI=$(find ~/.nvm/versions/node -name 'cli.js' -path 'claude-code') echo "Patching: $CLI" # Apply the timeout fix sed -i 's/timeout:15000/timeout:45000/g' "$CLI" sed -i 's/AbortSignal.timeout(15000)/AbortSignal.timeout(45000)/g' "$CLI"

Worked for me

Hydrozyk · 4 months ago
> CLI=$(find ~/.nvm/versions/node -name 'cli.js' -path '_claude-code_') > echo "Patching: $CLI" > # Apply the timeout fix > sed -i 's/timeout:15000/timeout:45000/g' "$CLI" > sed -i 's/AbortSignal.timeout(15000)/AbortSignal.timeout(45000)/g' "$CLI" Worked for me

Getting
CLI=$(find ~/.nvm/versions/node -name 'cli.js' -path 'claude-code')
find: ‘/home/nm-user/.nvm/versions/node’: No such file or directory

Coooky87 · 4 months ago

<img width="1578" height="855" alt="Image" src="https://github.com/user-attachments/assets/c5548b69-6faa-448c-8126-f93af7ed29c3" />

[https://status.claude.com/](url)

Coooky87 · 4 months ago

Workaround: Increase OAuth timeout on Windows

The hardcoded 15000ms (15s) OAuth timeout in cli.js isn't long enough when auth.anthropic.com is slow to resolve. Bumping it to 45000ms (45s) fixed login for me.

Git Bash

CLI=$(find "$(cygpath "$(npm root -g)")/@anthropic-ai/claude-code" -name 'cli.js' 2>/dev/null | head -1)
echo "Patching: $CLI"
sed -i 's/timeout:15000/timeout:45000/g' "$CLI"
sed -i 's/AbortSignal.timeout(15000)/AbortSignal.timeout(45000)/g' "$CLI"

PowerShell

$CLI = Get-ChildItem -Path "$(npm root -g)\@anthropic-ai\claude-code" -Filter "cli.js" -Recurse | Select-Object -First 1
Write-Host "Patching: $($CLI.FullName)"
(Get-Content $CLI.FullName -Raw) -replace 'timeout:15000','timeout:45000' -replace 'AbortSignal\.timeout\(15000\)','AbortSignal.timeout(45000)' | Set-Content $CLI.FullName -NoNewline

Then run /login again.

gyrusdentatus · 4 months ago
The same for me mostly, but sometimes I got 500 status code. By the way, Cluade itself: <img width="761" height="665" alt="Image" src="https://github.com/user-attachments/assets/fbb841c0-9c7f-4848-a227-fbf2b3dbd10f" /> Have anybody already tried to patch the binary? =)

yep, sed the timeout to longer , see issue by me

gyrusdentatus · 4 months ago
Same issue on EndeavourOS (Arch-based), Lima, Peru. Claude Code 2.1.72, installed via npm + nvm. Environment: - OS: EndeavourOS / kernel 6.19.6-arch1-1 - Node: v22.14.0 (nvm) - Shell: bash 5.3.9 - Can log in via claude.ai web browser ✅ - /login in CLI fails with OAuth error: timeout of 15000ms exceededWorkaround confirmed working for Linux/nvm users: ``bash # Find the file CLI=$(find ~/.nvm/versions/node -name 'cli.js' -path '*claude-code*') echo "Patching: $CLI" # Apply the timeout fix sed -i 's/timeout:15000/timeout:45000/g' "$CLI" sed -i 's/AbortSignal.timeout(15000)/AbortSignal.timeout(45000)/g' "$CLI" ` After patching, /login` completes successfully. This confirms the issue is not specific to Windows — it affects Linux users in Latin America as well, likely due to regional latency on the OAuth callback endpoint.

yeees, one of the smarter people minority! I can't believe people rather downgrade then to try to fix a problem :d

correct solution!

Huweicai · 3 months ago
<img alt="Image" width="1578" height="855" src="https://private-user-images.githubusercontent.com/70184116/561747247-c5548b69-6faa-448c-8126-f93af7ed29c3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0OTIwODMsIm5iZiI6MTc3NTQ5MTc4MywicGF0aCI6Ii83MDE4NDExNi81NjE3NDcyNDctYzU1NDhiNjktNmZhYS00NDhjLTgxMjYtZjkzYWY3ZWQyOWMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA2VDE2MDk0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2ODlkMDE4MDQzZDYzZWQ3YzEzMDk3N2JiN2YxYWQ0ZDhiY2U1Njg0NjBkOGJjMWI4ODdhNzM3NzUxYzRjZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TwbrNIVbBeJFEKmyr7t9lOaEJdF8tNmnzYxW_dUzC00"> [https://status.claude.com/](url)

https://status.claude.com/

I got the answer, it's the claude server issue.

mannyanebi · 3 months ago

<img width="1748" height="508" alt="Image" src="https://github.com/user-attachments/assets/4ac5eb6d-0b44-4a86-926f-982ead124b61" />

https://github.com/anthropics/claude-code/issues/33238#issuecomment-4193478914

The issue has been fixed. You can try logging in again

mikeyang596-ai · 3 months ago
> <img alt="Image" width="1578" height="855" src="https://private-user-images.githubusercontent.com/70184116/561747247-c5548b69-6faa-448c-8126-f93af7ed29c3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0OTIwODMsIm5iZiI6MTc3NTQ5MTc4MywicGF0aCI6Ii83MDE4NDExNi81NjE3NDcyNDctYzU1NDhiNjktNmZhYS00NDhjLTgxMjYtZjkzYWY3ZWQyOWMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA2VDE2MDk0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2ODlkMDE4MDQzZDYzZWQ3YzEzMDk3N2JiN2YxYWQ0ZDhiY2U1Njg0NjBkOGJjMWI4ODdhNzM3NzUxYzRjZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TwbrNIVbBeJFEKmyr7t9lOaEJdF8tNmnzYxW_dUzC00"> > [https://status.claude.com/](url) https://status.claude.com/ I got the answer, it's the claude server issue.

There is already a solution mentioned earlier. Based on how you installed Claude Code—in my case, on Windows using irm https://claude.ai/install.ps1 | iex—the output of (Get-Command claude).Source is:

C:\Users\SparkY\AppData\Local\Microsoft\WinGet\Links\claude.exe

The fix is to set the following in PowerShell:

$env:CLAUDE_HTTP_TIMEOUT=45000

kazeshuni · 3 months ago

Had the same issue on Mac, installed Claude CLI via brew
Fixed issue for me: claude /logout and than /login no more OAuth error: timeout of 15000ms exceeded error

wazum · 3 months ago

Experience the same right now … never seen that before. Tried with two accounts.

OAuth error: timeout of 15000ms exceeded

When I use /logout and then /login again (as suggested) after some time (Loading spinner on the Authorize button) I get this in the browser:
All set, build something great …
but in the Console

OAuth error: Request failed with status code 500

or simply the message (in the browser)

Authorization failed
Internal server error

0xt3ch · 3 months ago

Same issue right now

milankmr · 3 months ago

Facing the same again today .

OAuth error: timeout of 15000ms exceeded

dustinrjo · 3 months ago

for me this error is occurring but despite it saying 15000ms I complete the loop and get the error in under 10 seconds. So it seems like something else throws the error, not actually a timeout.

keunjunpark · 3 months ago

seems like it got flagged https://status.claude.com/#

therealnlee · 3 months ago

I have the same issue right now on version 2.1.92

OAuth error: timeout of 15000ms exceeded
synet-senior-dev · 3 months ago

i think its fixed, just logged in

bernhardkohlmeier · 3 months ago

Same issue in 2.1.92
Windows 11, Claude Code v2.1.92, Max subscription
OAuth timeout 15000ms — firewall blocks localhost callback
Suggestion: support a manual code paste flow (like gh auth login does) instead of relying on localhost callback

15 seconds is way too short. I had to disable the firewall to get authorized. There has to be a a more reliable flow for auth. claude auth login never worked.

notitatall · 3 months ago

Apologies for the disruption, folks! We believe this issue has been resolved.

0xt3ch · 3 months ago
Apologies for the disruption, folks! We believe this issue has been resolved.

Confirmed !

N13T · 3 months ago

Im still facing this with 2.1.109 im either getting a timeout or 500

antons1 · 3 months ago

I'm getting this error right now from an Ubuntu server with Claude Code. The login process takes <15 seconds, but this is the output:

claude auth login 2>&1 | ts
Apr 15 20:08:20 Opening browser to sign in…
Apr 15 20:08:20 If the browser didn't open, visit: https://claude.com/cai/oauth/authorize?code=true&client_id=[clientId]&response_type=code&redirect_uri=https%3A%2F%2Fplatform.claude.com%2Foauth%2Fcode%2Fcallback&scope=org%3Acreate_api_key+user%3Aprofile+user%3Ainference+user%3Asessions%3Aclaude_code+user%3Amcp_servers+user%3Afile_upload&code_challenge=[challenge]&code_challenge_method=[challengeMethod]&state=[state]
Apr 15 20:09:03 Login failed: timeout of 15000ms exceeded
IntelligentAICode · 3 months ago

Same here - OAuth error: timeout of 15000ms exceeded on Ubuntu 24.04 LTS

OleSkaar · 2 months ago

I'm experiencing the same error now, using claude in Ubuntu 24.04 LTS inside WSL on Windows 11. Claude Code was suddenly unable to connect during a session. Tried logging in and out, and deleting tokens in Claude, but it's not working. Claude Code produces the URL to authenticate with, opening it gives the page with the "Authorize" prompt, but after clicking Authorize, the request to localhost:[portnumber] hangs, and Claude Code eventually times out after 15s.

Yitalin · 2 months ago

Same here - OAuth error: timeout of 30000ms exceeded. Using claude in Ubuntu 24.04 LTS inside WSL on Windows 11.