⎿ API Error: 401

Resolved 💬 2 comments Opened Jul 10, 2025 by Shengguang-Zhou Closed Jul 10, 2025

Bug Description
⎿ API Error: 401
{"type":"error","error":{"type":"authentication_error","message":"Invalid OAuth
token. The provided token was not found or is malformed."}}
constantly getting this, tried manully logout and login by both manually open login link/automatic login both as well, still getting this

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.35
  • Feedback ID: 2b1d3fa2-880b-4192-8702-26db7776f426

Errors

[{"error":"Error: Failed to check bun permissions\n    at qM5 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2069:690)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async v2A (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2069:808)\n    at async rw1 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2079:43)\n    at async file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2465:8378","timestamp":"2025-07-10T00:35:16.159Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n    at Z5.generate (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12612)\n    at Jq.makeStatusError (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-10T00:35:18.120Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n    at Z5.generate (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12612)\n    at Jq.makeStatusError (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-10T00:35:19.991Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n    at Z5.generate (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12612)\n    at Jq.makeStatusError (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V$2.l11.showErrors (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22790)\n    at async l11 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:12370)\n    at async V$2 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22636)\n    at async file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17760\n    at async M1A (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5121)\n    at async Mu (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17730)","timestamp":"2025-07-10T00:35:21.805Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n    at Z5.generate (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12612)\n    at Jq.makeStatusError (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-10T00:37:28.205Z"}]

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗