claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] API Error: 403 {"error":{"type":"forbidden","message":"Request not allowed"}} · Please run /login

Open flowerwOw0316 opened this issue 3 months ago • 8 comments

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Image

What Should Happen?

response

Error Messages/Logs


Steps to Reproduce

send hello

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.28

Claude Code Version

2.0.31

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

flowerwOw0316 avatar Nov 01 '25 01:11 flowerwOw0316

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8747
  2. https://github.com/anthropics/claude-code/issues/2040
  3. https://github.com/anthropics/claude-code/issues/10591

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 01 '25 01:11 github-actions[bot]

cli same,

Image

flowerwOw0316 avatar Nov 01 '25 02:11 flowerwOw0316

I have already tried executing the command irm https://claude.ai/install.ps1 | iex, but reinstalling and logging in still doesn't work on Windows 11.

flowerwOw0316 avatar Nov 01 '25 02:11 flowerwOw0316

The cause of the issue has been identified: this version of Claude's native binary does not read the proxy configuration in the setting.json file. It is a bug.

flowerwOw0316 avatar Nov 01 '25 07:11 flowerwOw0316

The npm version works, while native version doesn't

johnmiroki avatar Nov 02 '25 04:11 johnmiroki

To resolve this issue, you can try the following steps:

  1. Uninstall the current npm version.
  2. Delete the Claude-related files in the user directory (or back them up).
  3. Install the native version.
  4. Re-login.

I tested and it works fine.

vauns avatar Nov 03 '25 03:11 vauns

I'm facing the same issue with the native version v2.0.55. The HTTP_PROXY and HTTPS_PROXY environment variables in ~/.claude/settings.json don't work.

However, the following command works for me with the native version:

HTTP_PROXY=<YOUR_HTTP_PROXY> HTTPS_PROXY=<YOUR_HTTPS_PROXY> claude

KylinWu avatar Nov 27 '25 02:11 KylinWu

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 27 '25 10:12 github-actions[bot]