i keep having this error when i ran Claude code today.\
Resolved 💬 7 comments Opened Jul 10, 2025 by huukim136 Closed Jul 10, 2025
Bug Description
i keep having this error when i ran Claude code today.\
API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid OAuth token. The provided token was not found or is malformed."}}\
I tried to log out, log in, reauthorize many times but did not work.
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.44
- Feedback ID: 76471a5c-1d1a-49ba-a4da-08412b99cb93
Errors
[{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n at D6.generate (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1304:12612)\n at gq.makeStatusError (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:2100)\n at gq.makeRequest (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async fA1.showErrors (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:23214)\n at async fA1 (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:12720)\n at async aR2 (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:23062)\n at async file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:18138\n at async Y0A (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:5121)\n at async Vc (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:18108)","timestamp":"2025-07-10T00:57:25.069Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n at D6.generate (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1304:12612)\n at gq.makeStatusError (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:2100)\n at gq.makeRequest (file:///root/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-10T01:02:32.143Z"}]This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗