warp icon indicating copy to clipboard operation
warp copied to clipboard

Warp does not work properly when connected through a proxy

Open elviskahoro opened this issue 4 years ago • 18 comments

Describe the solution you'd like?

We've been getting reports that Warp doesn't work when connected to a proxy. Creating a public issue so people can subscribe.

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

elviskahoro avatar Jan 30 '22 22:01 elviskahoro

Maybe can use system proxy by default?

Goooler avatar Feb 10 '22 09:02 Goooler

I tried to fix it.🧐 https://embiid.blog/post/WARP-does-not-work-after-submitting-an-invite-code/

dev4joel avatar Apr 01 '22 10:04 dev4joel

Alternatively, go to /Applications/Warp.app/Contents/MacOS and launch warp via

ALL_PROXY="your_proxy" ./stable

Not sure which proxy is actually used, so I used ALL_PROXY. If you already have the proxies set in your rc file, ./stable works out of box.

@dev4joel's solution is nice, but for people behind proxies, installing another program can often be painful (need manager's approval and admin privilege, etc).

tautomer avatar Apr 05 '22 19:04 tautomer

@tautomer WOW, That's COOL! TIL! Thanks.

dev4joel avatar Apr 07 '22 04:04 dev4joel

Please fix it asap.

yam-liu avatar Apr 07 '22 16:04 yam-liu

The login issue is here:

  • 👉 https://github.com/warpdotdev/Warp/milestone/5

How to fix the confusing login flow issue is here:

How to fix the proxy issue is here:

dev4joel avatar Apr 10 '22 03:04 dev4joel

I still have connection problem.

set HTTP_PROXY or ALL_PROXY: not work

use the ALL_PROXY="your_proxy" ./stable command: not work

the error info is always:

10:35:08 [ERROR] Failed to authenticate user error sending request for url (https://securetoken.googleapis.com/v1/token?key=*****************): operation timed out

Caused by:
    operation timed out
  • I do have proxy to connect github and google

Arcadia822 avatar Apr 11 '22 10:04 Arcadia822

Alternatively, go to /Applications/Warp.app/Contents/MacOS and launch warp via

ALL_PROXY="your_proxy" ./stable

Not sure which proxy is actually used, so I used ALL_PROXY. If you already have the proxies set in your rc file, ./stable works out of box.

@dev4joel's solution is nice, but for people behind proxies, installing another program can often be painful (need manager's approval and admin privilege, etc).

The issue is resolved, the warp works!

limux avatar Apr 11 '22 16:04 limux

From #2089

  1. Would like a feature to support configuring a command-line proxy? Similar to the iterm2 configuration on the 'login shell', for example 'export https_proxy=http://127.0.0.1:.XXXX'

elviskahoro avatar Nov 21 '22 21:11 elviskahoro

This issue is a bit meandering and touches on a few different topics. For example, making it easy to set proxy variables when running a command in Warp seems quite different then Warp itself respecting your proxy settings.

I believe this issue is about Warp itself. So to make this clearer to the Warp team let me summarize the important bits as if this was a new issue:


Warp does not respect the macOS system wide proxy settings

Describe the bug

Warp does not respect the system wide proxy settings. If you set a proxy at the macOS level, in Preferences -> Network -> Advanced -> Proxies, these proxies settings are ignored by Warp and it'll attempt to access the internet directly without going through the proxy.

To Reproduce

Method 1:

  • Get on a network where the only public internet access is available through a proxy set in your system wide settings.
  • Observe that Warp's online features do not work.

Method 2:

  • Install Charles Proxy by downloading it or using homebrew Casks: brew install charles
  • Open up Charles, turn on the proxy, and enable the macOS system proxy setting.
  • Observe that most all of your network traffic is now appearing in Charles, but not traffic from the Warp app. (look for the domain warp.dev). Restart Warp a few times to confirm this.

Expected behaviour

Warp should respect the system wide proxy settings like every other app. When a system wide proxy is set, Warp should use that proxy.

Workaround

Warp does respect the https_proxy environmental variable. Using this, and assuming Charles proxy is running on port 8888, you can make Warp use Charles proxy by launching it like this:

$ https_proxy=http://127.0.0.1:8888 /Applications/Warp.app/Contents/MacOS/stable

Or you can set a global macOS system environment variable like this:

$ launchctl setenv https_proxy 'http://127.0.0.1:8888'

And then launch Warp the usual way. (note: this will persist until reboot or unset with launchctl unsetenv)

The funny thing is if you want Warp to respect your proxy settings, you'll need to use another terminal program besides Warp to do it.

Operating System

MacOS

OS Version

12.6.1

Shell Version

zsh 5.8.1 (x86_64-apple-darwin21.0)

Warp Version

v0.2022.12.13.08.04.stable_01

varenc avatar Dec 19 '22 19:12 varenc

Warp has recently added support for MacOS proxy settings. Please update to v0.2023.10.10.08.06.stable_02 or above. Please test and confirm if this has helped with the issue.

dannyneira avatar Oct 12 '23 22:10 dannyneira

Warp has recently added support for MacOS proxy settings. Please update to v0.2023.10.10.08.06.stable_02 or above. Please test and confirm if this has helped with the issue.

It does not work in my computer.

ifplusor avatar Nov 15 '23 05:11 ifplusor

This slight variation of the original answer also appears to work.

ALL_PROXY="your_proxy" open -a Warp

lobaak avatar Dec 03 '23 21:12 lobaak

this is my solution, it works. alias warp='https_proxy=http://127.0.0.1:6152 http_proxy=http://127.0.0.1:6152 all_proxy=socks5://127.0.0.1:6153 open -a Warp' if first open the warp, usewarp, and you do not command + q to quit it, you can always use this proxy with warp. so i recommand open this switch 截屏2024-08-08 18 58 29

huhu415 avatar Aug 08 '24 10:08 huhu415

I think warp should provide proxy setting function, which is a basic function of many software.

qiyuey avatar Oct 30 '24 08:10 qiyuey

Can confirm also could not login due to corporate proxy, opening via alias and setting the ALL_PROXY env finally let me through (not a great onboarding experience though, the docs pushed me down a path of changing browser settings)

csi-lk avatar Jul 01 '25 03:07 csi-lk

Few years later, still no fix for this ?

flomillot avatar Nov 03 '25 11:11 flomillot

In order to run it in background, execute the following:

ALL_PROXY="your proxy" nohup /Applications/Warp.app/Contents/MacOS/stable &>/dev/null &

mostafaghadimi avatar Feb 18 '26 23:02 mostafaghadimi