[Bug] Authentication Error: 401 Unauthorized on API Requests

Resolved 💬 3 comments Opened May 1, 2026 by sargbah84 Closed May 4, 2026

Bug Description
keep getting auth screen and api error: 401

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.123
  • Feedback ID: 36c2939f-c443-4c58-b953-14819d9410c0

Errors

[{"error":"AxiosError: Request failed with status code 401\n    at hn (B:/~BUN/root/src/entrypoints/cli.js:115:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:12716)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at async Kk (B:/~BUN/root/src/entrypoints/cli.js:444:4918)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2713:190)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:6874:23779)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:28:51.285Z"},{"error":"AxiosError: Request failed with status code 401\n    at hn (B:/~BUN/root/src/entrypoints/cli.js:115:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:12716)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at async x6A (B:/~BUN/root/src/entrypoints/cli.js:6531:4763)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:6531:5994)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:28:51.822Z"},{"error":"AxiosError: Request failed with status code 401\n    at hn (B:/~BUN/root/src/entrypoints/cli.js:115:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:12716)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at async aJ9 (B:/~BUN/root/src/entrypoints/cli.js:3168:14725)\n    at async b27 (B:/~BUN/root/src/entrypoints/cli.js:3168:15264)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:28:51.822Z"},{"error":"AxiosError: Request failed with status code 401\n    at hn (B:/~BUN/root/src/entrypoints/cli.js:115:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:120:12716)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:122:2467)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9254:20340)\n    at async Kk (B:/~BUN/root/src/entrypoints/cli.js:444:4918)\n    at async EEA (B:/~BUN/root/src/entrypoints/cli.js:9254:20097)\n    at async ZE_ (B:/~BUN/root/src/entrypoints/cli.js:9254:20732)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:28:52.119Z"},{"error":"Error\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:57485)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-05-01T02:09:49.274Z"},{"error":"SUH: Failed to install new version of claude:  npm error code EBUSY\nnpm error syscall copyfile\nnpm error path C:\\Users\\sargb\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@anthropic-ai\\claude-code-win32-x64\\claude.exe\nnpm error dest C:\\Users\\sargb\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-FPgVQFmD\\node_modules\\@anthropic-ai\\claude-code-win32-x64\\claude.exe\nnpm error errno -4082\nnpm error EBUSY: resource busy or locked, copyfile 'C:\\Users\\sargb\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@anthropic-ai\\claude-code-win32-x64\\claude.exe' -> 'C:\\Users\\sargb\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-FPgVQFmD\\node_modules\\@anthropic-ai\\claude-code-win32-x64\\claude.exe'\nnpm error A complete log of this run can be found in: C:\\Users\\sargb\\AppData\\Local\\npm-cache\\_logs\\2026-05-01T02_10_51_605Z-debug-0.log\n    at zY8 (B:/~BUN/root/src/entrypoints/cli.js:2823:2203)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9053:10782)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T02:10:52.538Z"},{"error":"Error\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:57485)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-05-01T02:11:43.851Z"},{"error":"SUH: Failed to install new version of claude:  npm error code EBUSY\nnpm error syscall copyfile\nnpm error path C:\\Users\\sargb\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@anthropic-ai\\claude-code-win32-x64\\claude.exe\nnpm error dest C…

Note: Content was truncated.

View original on GitHub ↗

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