[BUG] Claude code cannot connect to the internet

Resolved 💬 1 comment Opened Jun 2, 2026 by craigntsl Closed Jul 6, 2026

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?

When I try to do anything with Claude Code that involves the internet, Claude Code tries to use a proxy which does not exist, and it fails.

What Should Happen?

Claude Code should be able to access the internet.

Error Messages/Logs

! curl 1.1.1.1                                                                                                                                                                                                  
  ⎿    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                      Dload  Upload   Total   Spent    Left  Speed
       0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
     curl: (7) Failed to connect to localhost port 3128 after 1 ms: Couldn't connect to server

! sleep 0.5 ; curl 1.1.1.1                                                                                                                                                                                      
  ⎿    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                      Dload  Upload   Total   Spent    Left  Speed
       0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
     curl: (7) Failed to connect to localhost port 3128 after 3 ms: Couldn't connect to server

! curl google.com                                                                                                                                                                                               
  ⎿    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                      Dload  Upload   Total   Spent    Left  Speed
       0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
     curl: (7) Failed to connect to localhost port 3128 after 3 ms: Couldn't connect to server

Steps to Reproduce

! curl google.com

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.160 (Claude Code)

Platform

AWS Bedrock

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗