API Error: 401 {"type":"error","error":{"type":"authenticati.../su

Status Closed — not planned
Maintainer reply None cached
Activity 10 comments · opened Oct 31, 2025 · closed Jan 14, 2026

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_011CUfEoUHxoPjKj7PJHsAZt"} · Please run /login ----- not able to login using account and getting OAuth Request Failed
Internal server error

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.0.30
  • Feedback ID:

Errors

[{"error":"AxiosError: Request failed with status code 401\n    at fR (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:24:1136)\n    at IncomingMessage.<anonymous> (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:29:9845)\n    at IncomingMessage.emit (node:events:530:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at b7A.request (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:31:2129)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Hp2 (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3617:15232)","timestamp":"2025-10-31T11:41:56.985Z"},{"error":"AxiosError: Request failed with status code 400\n    at fR (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:24:1136)\n    at IncomingMessage.<anonymous> (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:29:9845)\n    at IncomingMessage.emit (node:events:530:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at b7A.request (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:31:2129)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async ekQ (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1954:1434)\n    at async Hn (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3594:10956)\n    at async Hz (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:653:23256)\n    at async OR8 (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:653:29928)\n    at async QrB (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:653:30174)","timestamp":"2025-10-31T11:42:00.609Z"},{"error":"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_011CUfDSdp14tmeUAHBizfgm\"}\n    at M4.generate (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:204:83101)\n    at Jk.makeStatusError (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:358:2117)\n    at Jk.makeRequest (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:358:5330)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async YVA (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1314:8767)\n    at async UwA (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3378:1031)\n    at async K01 (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3378:1240)\n    at async cm2 (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3388:531)","timestamp":"2025-10-31T11:42:05.056Z"},{"error":"AxiosError: Request failed with status code 400\n    at fR (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:24:1136)\n    at IncomingMessage.<anonymous> (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:29:9845)\n    at IncomingMessage.emit (node:events:530:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at b7A.request (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:31:2129)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async ekQ (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1954:1434)\n    at async Hn (file:///C:/Users/amitm/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3594:10956)\

Note: Error logs were truncated.

View original on GitHub ↗

10 Comments

github-actions[bot] · 11 months ago

---

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/10706
  2. https://github.com/anthropics/claude-code/issues/10705
  3. https://github.com/anthropics/claude-code/issues/10710

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

mhhio · 11 months ago

same for me please fix it
platform: mac os

Hue-Honda · 11 months ago

yeah same

emersong-espressolabs · 11 months ago

Same error

anthonystepvoy · 11 months ago

same issue, this is fkn ridiculous

jererobles · 11 months ago
github-actions[bot] · 10 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

codenamezjames · 10 months ago

still having this issue

github-actions[bot] · 9 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 8 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.