[BUG] claude /login fails with QueryClient error
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?
I am trying to run claude /login and clicking the "authorize" button just does nothing. Opening up the console logs, I see the attached errors
I'm literally just trying to use Claude code for an interview I have later today
<img width="1032" height="800" alt="Image" src="https://github.com/user-attachments/assets/c18a3043-a561-4490-bc21-6ded8294240b" />
What Should Happen?
I should be able to authorize with both API usage AND subscription!
Error Messages/Logs
Steps to Reproduce
claude /logout
claude /login
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.7
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
I noticed that claude code does not automatically open my browser, so I have to paste in the URL it provides. that is when I run into the error above. I changed my default browser from Arc to Chrome and it was able to automatically open the browser and authenticate me
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗