[BUG] - 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_011CSSdA5fqJCVm1m4XMjNks"}
Resolved 💬 2 comments Opened Aug 24, 2025 by shailendradarthwares Closed Aug 24, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: <!-- output of
claude --version--> - Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
- Terminal: <!-- e.g. iTerm2, Terminal App -->
Bug Description
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_011CSSdA5fqJCVm1m4XMjNks"}
Steps to Reproduce
- <!-- First step -->
- <!-- Second step -->
- <!-- And so on... -->
Expected Behavior
<!-- What you expected to happen -->
Actual Behavior
when type claude and try to ask anything then its give this error - 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_011CSSdA5fqJCVm1m4XMjNks"}
and when trying to log in but same error
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗