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

[BUG] It seems Digital Ocean IPs cannot access Claude Code atm

Open plappag opened this issue 7 months ago • 8 comments

All 3 of our servers are returning this message:

Unable to connect to Anthropic services

Failed to connect to console.anthropic.com: Request failed with status code 403

Please check your internet connection and network settings.

Note: Claude Code might not be available in your country. Check supported countries at https://anthropic.com/supported-countries

On other servers however using Linode, it was driving me mad but I'm 100% this is what's going on. Can someone look into why the IPs are being blocked? I am connecting from legit countries, USA, Germany and Israel.

plappag avatar May 07 '25 08:05 plappag

I can confirm this. Via claude code, or direct curl tests from cli to console/api, 403 globally.

Failed to connect to console.anthropic.com: Request failed with status code 403 
gmbvdl@myb:~$ wget --server-response --spider console.anthropic.com 2>&1 | grep "HTTP/" | awk '{print $2}'
301
403

If it is indeed DO IP nets being blocked, why are they blanket blocked like this instead of specifically. Bit erratic

notnullxyz avatar May 07 '25 10:05 notnullxyz

Same for me connection from Azure VMs in West Europe.

jvirico avatar May 07 '25 10:05 jvirico

Im on DO and I'm getting the same message. Please advise.

phototeknyc avatar May 07 '25 18:05 phototeknyc

I'm also on Digital Ocean and receiving the same message. Extremely frustrating and negatively impacting.

printcotton avatar May 07 '25 19:05 printcotton

I'm also on Digital Ocean and receiving the same message. Extremely frustrating and negatively impacting.

Yeah it forced me to get WSL installed and just use that. You can still use Claude Code effectively like that.

plappag avatar May 07 '25 21:05 plappag

EDIT — 6:07 pm CT: seems to be resolved for at least one machine, checking others

Same issue. Fine yesterday 05-06, can’t access starting today 05-07. Getting response 403 or 401 on any type of call (curl -v https://console.anthropic.com gets 403, and claude code use gets 401 expired OAuth token, unable to login again effectively).

This genuinely appears to be a blanket blacklist of DO ip’s. Super curious what is the reason. Unfortunately if this continues I need to pick to drop DO or CC, and I’d rather drop neither!

alosec avatar May 07 '25 22:05 alosec

I am not use in cloud, just in my home network will get those bugs too. In California

nerdneilsfield avatar Jun 02 '25 09:06 nerdneilsfield

This is Claude's Cloudflare Shield. According to my tests, globally, any server using curl receives a 403. It's not a real 403, but rather waiting for a CAPTCHA verification, which the CLI environment cannot handle. Only console.anthropic.com behaves this way; the actual working api.anthropic.com seems to have no issues. I believe Claude considers this a very good way to protect their business.

SamPeng87 avatar Jun 30 '25 13:06 SamPeng87

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 Oct 10 '25 10:10 github-actions[bot]

Hi - thanks for reporting. Please re-open with repro steps if this error is still occurring. Thank you!

catherinewu avatar Nov 30 '25 02:11 catherinewu