warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.31k stars 371 forks source link

AI Command search doesn't work when VPN is on #1924

Open robb-albright opened 2 years ago

robb-albright commented 2 years ago

Discord username (optional)

No response

Describe the bug

I'm employed at a large bank, so my computer requires VPN to be connected during work.

When VPN is on, The AI command window shows an error

To Reproduce

Start Endpoint Security VPN

Try to search for an AI Command

Expected behaviour

It should work

Screenshots

No response

Operating System

MacOS

OS Version

12.6

Shell Version

fish 3.5.1

Warp Version

v0.2022.09.27.08.11.stable_00

Additional context

No response

Does this block you from using Warp daily?

Yes

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

dannyneira commented 2 years ago

Hi @robb-albright, I'm Danny, a Support Engineer at Warp. Thanks for letting us know! We're sorry about this, this is not an ideal experience.

So for the A.I. Command search, we leverage Codex AI APIs. If this feature doesn't work, it is possible that your ISP or Firewall is blocking the calls to app.warp.dev

I hope this helps, please let me know if the above is helpful.

dannyneira commented 1 year ago

Hi @robb-albright Any luck unblocking/whitelisting the domain app.warp.dev?

anazar2001 commented 1 year ago

Have the same problem with AI search not working when AnyConnect is on. I can open app.warp.dev in my browser without any issues even with VPN on.

mduttondev commented 1 year ago

I also have the issue using Big-IP Edge Client (F5)

dannyneira commented 1 year ago

We'll investigate this and post any updates on this thread. Please :+1: and comment if you're also seeing this issue as it helps us gauge impact.

oscarvaldes commented 1 year ago

seeing the exact same behavior as @anazar2001.

cruepprich commented 1 year ago

I have the same issue when connected to my corporate VPN. Here is a quick test I did:

Without VPN connection:

curl -I app.warp.dev
HTTP/1.1 302 Found
Location: https://app.warp.dev/
X-Cloud-Trace-Context: e4c2f0c03def442979072b68c5d18f32
Date: Thu, 12 Jan 2023 15:51:40 GMT
Content-Type: text/html
Server: Google Frontend
Transfer-Encoding: chunked

With VPN connection:

curl -I app.warp.dev
curl: (28) Failed to connect to app.warp.dev port 80 after 75321 ms: Operation timed out
ellipticview commented 1 year ago

When my Macbook is NOT connected to the corporate VPN, scutil shows this output:

scutil --proxy
<dictionary> {
  ExceptionsList : <array> {
    0 : *.local
    1 : 169.254/16
  }
  FTPPassive : 1
}

When my Macbook is connected to the corporate VPN (using Cisco Anyconnect), https connections go through the corporate proxy. scutil returns this result:

scutil --proxy
<dictionary> {
  ProxyAutoConfigEnable : 1
  ProxyAutoConfigURLString : http://wpad/wpad.dat
}

Warp will have to find the proxy server from this file wpad.dat (possibly using https://github.com/manugarg/pacparser) and then route the request to app.warp.dev through this proxy.

E.g.

curl -x proxy.example.com:80 -I app.warp.dev

I hope this helps to resolve this issue.

wallace41290 commented 1 year ago

I have the same issue as well. I think warp needs a way for the user to specify proxy settings. Another example I can think of is we use IntelliJ at work and have to set up the proxy settings to use our corporate proxy with credentials and that works, see https://www.jetbrains.com/help/idea/settings-http-proxy.html