I have run into the dreaded authentication token expiration...
Resolved 💬 3 comments Opened Nov 4, 2025 by suuperprince Closed Nov 8, 2025
Bug Description
I have run into the dreaded authentication token expiration error "OAuth error:read ECONNRESET". I have tried almost 10 times to login, on the website it shows that Authentication has been granted, but in Terminal, I am asked to retry - to no avail.
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_011CUoZMrtmmg5Rw5yUz1Ppr"} · Please run /login
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.32
- Feedback ID:
Errors
[{"error":"Error: read ECONNRESET\n at Qe.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:12:14378)\n at PE.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:30:10009)\n at PE.emit (node:events:508:28)\n at PE.emit (node:domain:489:12)\n at M91.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:1117)\n at ClientRequest.emit (node:events:520:35)\n at ClientRequest.emit (node:domain:489:12)\n at emitErrorEvent (node:_http_client:107:11)\n at TLSSocket.socketErrorListener (node:_http_client:574:5)\n at TLSSocket.emit (node:events:508:28)\n at o7A.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:32:2129)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async AxQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1956:1434)\n at async jn (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3607:2123)\n at async $z (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:651:23256)\n at async _T8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:651:30126)\n at async trB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:651:30372)","timestamp":"2025-11-04T21:27:36.878Z"},{"error":"AxiosError: Request failed with status code 401\n at dR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:25:1136)\n at IncomingMessage.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:30:9845)\n at IncomingMessage.emit (node:events:520:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at o7A.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:32:2129)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Ml2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3630:15280)","timestamp":"2025-11-04T21:27:37.007Z"},{"error":"Error: read ECONNRESET\n at Qe.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:12:14378)\n at PE.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:30:10009)\n at PE.emit (node:events:508:28)\n at PE.emit (node:domain:489:12)\n at M91.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:1117)\n at ClientRequest.emit (node:events:520:35)\n at ClientRequest.emit (node:domain:489:12)\n at emitErrorEvent (node:_http_client:107:11)\n at TLSSocket.socketErrorListener (node:_http_client:574:5)\n at TLSSocket.emit (node:events:508:28)\n at o7A.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:32:2129)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async AxQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1956:1434)\n at async jn (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3607:2123)\n at async $z (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:651:23256)\n at async FA1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2745:39764)\n at async Vc2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3397:10674)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3397:8667\n at async $A0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3397:1970)\n at async l8A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3397:8637)","timestamp":"2025-11-04T21:27:37.159Z"},{"error":"Error: read ECONNRESET\n at Qe.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:12:14378)\n at PE.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:30:10009)\n at PE.emit (node:events:508:28)\n at PE.emit (node:domain:489:12)\n at M91.<computed> (file:///opt/homebrew/lib/node_
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗