api error: 401{"type" ; "error": {"type":...

Resolved 💬 5 comments Opened Aug 26, 2025 by oluwarinu-adepoju Closed Jan 4, 2026

Bug Description
api error: 401{"type" ; "error": {"type": "authentication_error", "message":"OAuth authentication is currently not allowed for this organization."}, "request_id":"req_011CSWBrfQDASjzucdrhu8Fn"}

Environment Info

  • Platform: win32
  • Terminal: cursor
  • Version: 1.0.92
  • Feedback ID:

Errors

[{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011CSWBqEyFwaSPJ8ifLcRWf\"}\n    at b4.generate (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:926:2447)\n    at CP.makeStatusError (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n    at CP.makeRequest (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-26T10:46:43.088Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:704:9932\n    at Q (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:671:13288)\n    at Ra2 (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1058:1990)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-26T10:46:43.098Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011CSWBqYH49MfJBYAiAxa8v\"}\n    at b4.generate (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:926:2447)\n    at CP.makeStatusError (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n    at CP.makeRequest (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-26T10:46:50.301Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011CSWBrfQDASjzucdrhu8Fn\"}\n    at b4.generate (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:926:2447)\n    at CP.makeStatusError (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n    at CP.makeRequest (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async YQB.yZ1.showErrors (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1898:27488)\n    at async yZ1 (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1898:16483)\n    at async YQB (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1898:27318)\n    at async file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1898:22272\n    at async bz0 (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1898:3656)\n    at async Re (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1898:22242)","timestamp":"2025-08-26T10:47:02.468Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011CSWDev4fN2REuMZBAskCv\"}\n    at b4.generate (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:926:2447)\n    at CP.makeStatusError (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n    at CP.makeRequest (file:///C:/Users/APIN%20PCR%20LAB%20LAMS-01/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-26T11:10:36.233Z"

Note: Error logs were truncated.

View original on GitHub ↗

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