[BUG] OAuth Request Failed Internal server error
Resolved 💬 52 comments Opened Oct 31, 2025 by RogierKonings Closed Nov 10, 2025
💡 Likely answer: A maintainer (blois, collaborator)
responded on this thread — see the highlighted reply below.
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?
When I try to authenticate my Claude CLI or VSCode extension, I get the following error.
OAuth Request Failed
Internal server error
The issue persists even after clearing local cookies/ initiating a /logout in the claude CLI
What Should Happen?
I should get redirected without an error message
Error Messages/Logs
OAuth Request Failed
Internal server error
Steps to Reproduce
- Try to login with 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.0.30
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
52 Comments
Same issue on macOS, CLI 2.0.30 / 2.0.24, Claude Max login → “Internal Server Error” after browser redirect. Tried incognito, cleared cache, no VPN — still broken.
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I am not alone..
Auth failing in various ways. It was an error during pressing "Authorize" button. Then was an error during login via email (unable to send verification email). Then just "service unavailable". And in between something like "too many requests".
Same here (just wanted to get started with claude code, so no previous installs here). I tried:
Same here FFS...
I had the similar issue.
I have tried to re-install the claude code entirly,
I have tried different browser and other machine
I don't use any VPN or active firewall rule that preventing the Authentication.
sometimes I see the "Authorized" button but nothing will happen after clicking that
and I constantly get "OAuth Request Failed"
<img width="642" height="542" alt="Image" src="https://github.com/user-attachments/assets/42b5e288-a162-45bd-891c-9c6100ab310b" />
same here ubuntu 22.04
Facing same issue - macOs
+1
+1
+1
+1
+1
+1
+1
Same here. No way to OAuth claude code CLI or IDE. With or without VPN cleared cookies and cache, Windows or Linux. Dead! OAuth Request Failed Internal Server Error.
yea its still down i guess
+1
+1
sometimes i get to the authorisation page, but then when i click the button nothing happens
+1 still broken
+1
same here
+1
+1
as a work around to the TUI OAuth error, if you have the Claude Code for VSCode extension installed, I found you can still use that. I prefer the TUI but until the OAuth issue is fixed, this might work for other folks too.
<img width="381" height="82" alt="Image" src="https://github.com/user-attachments/assets/b60b4d1d-7570-40a3-9302-7d79f540cb19" />
+1
If it helps at all, I am seeing
on the
authorize/call of the oauth processFacing a similar issue for the last 3-4 hours. Browser says "OAuth Error, Internal Server Error" . I am trying to log in using /login from Claude code. I am getting this error in Claude code: API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CUf4bZLpS3WWw8pZYKzkk"} · Please run /login.
Everything was working fine 2 days back when I was 98% on my Pro plan weekly limit, which reset today.
OS System: Mac, Claude Code v2.0.30
Same here...
I have one terminal with the max account seems to be responding but the visual studio code is not
+1. 😒. Can we bypass authentication
Same Here
I slipped through, what worked for me:
After about 20-30 tries this worked for me, I'm not trying to reproduce this ;).
Surprisingly, this worked for me. After 35 attempts
Same issue here. Opened a support ticket 4h in and still no reply from their end.
This method worked for me to get the Authentication Code (the Network tab helps check the button-click status). But there is a next step, when you have to paste this code in Claude Code, and there it failed again, giving 500. And unfortunately, there you don't get a chance to try this code multiple times, so you need to start all over again, so very slim chance of going through completely.
this worked for me as well
I am experiencing the same issue.
+1
Its almost more than an hour that I stuck in authorization, and its not working, sadly my subscription time is running, but I did not get served due to "Internal Server Error"
https://status.claude.com/ has today as only 37 minutes downtime. Login and oauth has been down for at least 7 hours now. The status page doesn't even acknowledge this current ongoing failure. Pretty frustrating to think that we can't even report this anywhere and that they may not even be aware of the issue.
Works also thanks ! Need to wait for the button, then click on Authorize multiple time and its working !
500 x1, x2, x3... I've refresh the page many times (maybe 15 times) :
<img width="1899" height="857" alt="Image" src="https://github.com/user-attachments/assets/ad14b1dc-177e-4ab9-afac-741d4a2bf51e" />
And then it worked :
<img width="1899" height="735" alt="Image" src="https://github.com/user-attachments/assets/d4e0990c-13b2-4ebb-9541-daede2860a46" />
worked for me
yeah, in 4th try it worked and gave me code
4th? I get Internal Server Error about 40-50 times with a long wait to find out. If it succeeds (it has 3 times) it redirects to the chat window and doesn't give me a code to authorise my cli.
[edit] Note: On Linux.
Nice! It works perfect
Working for me now 😊
This worked for me right now, thank you!
took me some 10 tries, but it worked. i used Claude Code from the terminal in VS Code
Step 1: Initiate the Login Process
Open a Fresh Browser Session: Start a new or "fresh" browser profile (or use an incognito/private window). This ensures no existing sessions interfere.
Action: When the link shows in the terminal, copy it and open it in the fresh browser.
Step 2: Complete Web-Based Authentication
Enter Credentials: Input your email address associated with your Claude account and click Log In (or a similar button).
Check for Verification: The service will send a verification link or magic link to your email.
Verify Email: Open your email and click on the verification link in the same fresh browser you used in Step 1. This step confirms your identity.
Step 3: Retrieve and Use the Authentication Code
Receive the Code: After clicking the verification link, the browser page will typically display an authentication code or secret key.
Copy the Code: Copy this unique code from the browser window.
Paste into the Terminal: Go back to your Claude code terminal (or VS Code terminal) where you initiated the process.
Enter the Code: Paste the copied code into the designated input area in the terminal (or command prompt) and press Enter.
Confirm Login:
Success: You should receive a confirmation message like "Login successful!"
The terminal application is now authenticated to use your Claude account.
Transient issue, should be resolved.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.