Bug Report

Resolved 💬 2 comments Opened Aug 20, 2025 by arunavaghsh84 Closed Aug 22, 2025

Bug Description

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.85
  • Feedback ID: ba68b4d1-796b-4dea-8cf6-49fe742d9ecf

Errors

[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n    at file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-20T17:06:13.448Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"},\"request_id\":\"req_011CSKKztSeh8WsVaMbL4meJ\"}\n    at j4.generate (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:932:2447)\n    at bP.makeStatusError (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n    at bP.makeRequest (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-20T17:07:15.956Z"},{"error":"SyntaxError: Unexpected token A in JSON at position 0\n    at JSON.parse (<anonymous>)\n    at file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:718:9932\n    at Q (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n    at Bs2 (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1061:1992)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-20T17:07:15.963Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"},\"request_id\":\"req_011CSKKzvQDY1Uhe6Vgh4B4r\"}\n    at j4.generate (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:932:2447)\n    at bP.makeStatusError (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n    at bP.makeRequest (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async UD1.showErrors (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:27238)\n    at async UD1 (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:16345)\n    at async v9B (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:27089)\n    at async file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:22183\n    at async yH0 (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:3514)\n    at async F11 (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:22153)","timestamp":"2025-08-20T17:07:16.799Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"},\"request_id\":\"req_011CSKL4UsAwaTN5wjdxLuZ1\"}\n    at j4.generate (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:932:2447)\n    at bP.makeStatusError (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n    at bP.makeRequest (file:///home/arunava/.nvm/versions/node/v18.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-20T17:08:04.687Z"}]

View original on GitHub ↗

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