-
Notifications
You must be signed in to change notification settings - Fork 331
403 {"error":{"type":"forbidden","message":"Request not allowed"}} #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
do you have anything running on your 1212 port? or is a prior instance of electron running? |
I can confirm it's caused by the region restriction, you may need set up a proxy for your request to anthropic. |
thanks, but when I test anthropic official's it works.. |
nope I killed it |
I have the same error msg. And the following cmd has this error as well(which is from official documention):
After I enable system proxy TUN , so it can take over the traffic of Terminal as well. Both the error from the cmd above and agent.exe disappear. Hope this can provide some clues to your problem. |
same error , offical api test work, but this program run error |
I met this error and I edit .env file and set ANTHROPIC_BASE_URL to a proxy url and fixed it. I think this must be a network error |
I met the same error. |
me too |
@imcaptor @positive666 I met the same issure with you guys. I fixed it by edit .env file and set ANTHROPIC_BASE_URL.(I make a rewrite url through nginx) |
|
@positive666 I need nginx just because I live in China and my internet cant't accesss the server. I can share you: location /claude {
proxy_pass https://api.anthropic.com/;
proxy_ssl_server_name on;
proxy_set_header Host api.anthropic.com;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
} |
Thanks! |
offical api test work, but this program run error, How to solve this problem |
|
@GP-GUO this error means your base url is nor correct. you can check BASE_URL/v1/messages use curl. |
anyone has this issue ?

The text was updated successfully, but these errors were encountered: