Bug Report

Resolved 💬 3 comments Opened Aug 18, 2025 by chomanchero Closed Aug 21, 2025

Bug Description

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.83
  • Feedback ID: 2971f90c-9fc1-4f66-a918-aad5de905588

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/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:6454","timestamp":"2025-08-18T05:35:49.282Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:518:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-08-18T05:35:49.390Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"}}\n    at D6.generate (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:942:2449)\n    at sP.makeStatusError (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:2101)\n    at sP.makeRequest (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-18T05:38:02.349Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:718:9932\n    at Q (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n    at USB (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:29738)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-18T05:38:02.354Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"}}\n    at D6.generate (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:942:2449)\n    at sP.makeStatusError (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:2101)\n    at sP.makeRequest (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async KSB.sG1.showErrors (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:24578)\n    at async sG1 (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:13705)\n    at async KSB (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:24429)\n    at async file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:19524\n    at async cN0 (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:5164)\n    at async V01 (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:19494)","timestamp":"2025-08-18T05:38:02.745Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"}}\n    at D6.generate (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:942:2449)\n    at sP.makeStatusError (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:2101)\n    at sP.makeRequest (file:///home/hasanyetkiner/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-18T05:38:17.347Z"}]

View original on GitHub ↗

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