[BUG] OAuth error: Request failed with status code 500

Status Fixed / completed
Maintainer reply None cached
Activity 5 comments · opened Jan 22, 2026 · closed Feb 25, 2026

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?

<img width="1212" height="936" alt="Image" src="https://github.com/user-attachments/assets/21f622a4-8ad7-4d19-9fd1-28f6bea264fc" />

seeing this error on authorizing via browser: OAuth error: Request failed with status code 500

What Should Happen?

login should proceed normally

Error Messages/Logs

OAuth error: Request failed with status code 500

Steps to Reproduce

  1. fresh install v2.1.15
  2. $ claude
  3. copy and paste the login url to browser
  4. copy the auth key back in the claude code
  5. see the error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

v2.1.12

Claude Code Version

v2.1.15

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/10705
  2. https://github.com/anthropics/claude-code/issues/10715
  3. https://github.com/anthropics/claude-code/issues/13134

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

ecourn · 7 months ago

I also got the OAuth error: "Failed to fetch user roles: Request failed with status code 500" just now.

Prakkkmak · 7 months ago

Same error

stevenpetryk · 6 months ago

Hi folks, thanks for reporting this. These 500 errors were caused by transient API outages on the Anthropic side — not a bug in Claude Code itself. The API is currently healthy, so I'm closing this out. If you're still experiencing 500 errors, you can check the API status at https://status.anthropic.com, and if the issue persists while the status page is green, please open a new issue with your request ID and we'll investigate.

github-actions[bot] · 5 months ago

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.