[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_
37 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I reverted plugin from 2.1.72 to 2.1.71. Anthropic is making a lot of mistake and recent versions stop works.
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".
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.
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.
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
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.
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? =)
same
try /logout and then /login again it worked for me
same here. windows 10.
Same issue on EndeavourOS (Arch-based), Lima, Peru. Claude Code 2.1.72, installed via npm + nvm.
Environment:
/loginin CLI fails withOAuth error: timeout of 15000ms exceeded❌Workaround confirmed working for Linux/nvm users:
After patching,
/logincompletes 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.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
<img width="1578" height="855" alt="Image" src="https://github.com/user-attachments/assets/c5548b69-6faa-448c-8126-f93af7ed29c3" />
[https://status.claude.com/](url)
Workaround: Increase OAuth timeout on Windows
The hardcoded 15000ms (15s) OAuth timeout in
cli.jsisn't long enough whenauth.anthropic.comis slow to resolve. Bumping it to 45000ms (45s) fixed login for me.Git Bash
PowerShell
Then run
/loginagain.yep, sed the timeout to longer , see issue by me
yeees, one of the smarter people minority! I can't believe people rather downgrade then to try to fix a problem :d
correct solution!
https://status.claude.com/
I got the answer, it's the claude server issue.
<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
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).Sourceis:C:\Users\SparkY\AppData\Local\Microsoft\WinGet\Links\claude.exeThe fix is to set the following in PowerShell:
$env:CLAUDE_HTTP_TIMEOUT=45000Had 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
Experience the same right now … never seen that before. Tried with two accounts.
OAuth error: timeout of 15000ms exceeded
When I use
/logoutand then/loginagain (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
Same issue right now
Facing the same again today .
OAuth error: timeout of 15000ms exceeded
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.
seems like it got flagged https://status.claude.com/#
I have the same issue right now on version 2.1.92
i think its fixed, just logged in
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.
Apologies for the disruption, folks! We believe this issue has been resolved.
Confirmed !
Im still facing this with 2.1.109 im either getting a timeout or 500
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:
Same here - OAuth error: timeout of 15000ms exceeded on Ubuntu 24.04 LTS
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.
Same here - OAuth error: timeout of 30000ms exceeded. Using claude in Ubuntu 24.04 LTS inside WSL on Windows 11.