seems my cladue code faced the API Error: 401...

Resolved 💬 4 comments Opened Aug 22, 2025 by YoutingWang Closed Aug 22, 2025

Bug Description
seems my cladue code faced the API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth authentication is currently not allowed for this organization."},"request_id":"req_011CSNEaED1kUhJjJRCJNmFb"}

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.86
  • Feedback ID:

Errors

[{"error":"Error: 1: 1 \n    at Mk6 (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1845:4899)\n    at async Nk6 (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1845:2191)","timestamp":"2025-08-22T05:10:52.206Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011CSNCL9xA5f5iTjUgTLpQc\"}\n    at b4.generate (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:932:2447)\n    at dP.makeStatusError (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n    at dP.makeRequest (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T05:28:29.629Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:718:9932\n    at Q (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n    at zs2 (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1061:1992)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T05:28:29.633Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011CSNCLAfKvQLmFoQwYP8Wf\"}\n    at b4.generate (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:932:2447)\n    at dP.makeStatusError (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n    at dP.makeRequest (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async LD1.showErrors (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:27238)\n    at async LD1 (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:16345)\n    at async l9B (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:27089)\n    at async file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:22183\n    at async dH0 (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:3514)\n    at async V11 (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1904:22153)","timestamp":"2025-08-22T05:28:29.822Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011CSNCyYCQbtwfyEtWaj63F\"}\n    at b4.generate (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:932:2447)\n    at dP.makeStatusError (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n    at dP.makeRequest (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T05:36:56.764Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:718:9932\n    at Q (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n    at zs2 (file:///Users/youtingwang/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1061:1992)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"

Note: Error logs were truncated.

View original on GitHub ↗

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