cursor icon indicating copy to clipboard operation
cursor copied to clipboard

No connection while behind corporate proxy

Open tonydavis629 opened this issue 1 year ago • 9 comments

The side panel, inline editing, and copilot++ are recently experiencing either no connection (inline editting, copilot++) or spotty connection (in the side panel) while used behind an SSL proxy. I currently cannot use any features of cursor. This is a recent change, previously inline editting and the side panel were working fine. I have tested with several cursor models, and using an openai key, to the same effect.

failed request IDs: inline edits: 21a17ae0-6a0b-49dc-b747-eca733e31f77 side panel: 981b8c18-b7ae-4c3c-931e-9dd8a4176c37 copilot++: 2024-07-08 09:47:07.990 [info] CURSOR LOG: Error in streaming cpp [internal] Protocol error 2024-07-08 09:47:07.990 [info] CURSOR LOG: restFunc done 693d9e49-65fc-4ab0-8d6e-748ebce98df4

Version: 0.36.2 VSCode Version: 1.89.1 Commit: 9a6d781540ba2732cf26551c07629e68121c6580 Date: 2024-07-07T21:57:45.723Z (15 hrs ago) Electron: 28.2.8 ElectronBuildId: undefined Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.5.0

tonydavis629 avatar Jul 08 '24 13:07 tonydavis629

I wonder if a relay server can solve this issue

laciferin2024 avatar Jul 10 '24 22:07 laciferin2024

Having the same issue currently after the latest update. This is very frustrating.

Ching0509 avatar Jul 12 '24 06:07 Ching0509

+1

harukary avatar Jul 17 '24 04:07 harukary

+1

hitajitech avatar Jul 18 '24 08:07 hitajitech

+1

Belleye avatar Jul 24 '24 02:07 Belleye

After today's update, the side panel is working. However, Ctrl+K editing mode still doesn't work.

harukary avatar Jul 24 '24 03:07 harukary

+1

anth-dinosaur avatar Jul 24 '24 03:07 anth-dinosaur

Any fix to this is expected? I'm using cursor on my hobby projects and super happy with it.

In work we're using copilot and I find it utterly useless. I want to recommend cursor to our team to move but cannot as we're behind z-scaler and although any other program works (including copilot, tabnine, docker etc etc.) cursor just doesn't work.

dimitrypo avatar Jul 29 '24 06:07 dimitrypo

Are they giving up on responding any potential solution? (I know they're slow on response) I should also mention in the corporation environment, indexing, copilot++, and ctrl+k are all malfunctioned. This is unacceptably unstable for cursor running on certain environment.

Ching0509 avatar Aug 16 '24 08:08 Ching0509

Same to me.

2024-08-19 15:57:26.490 [info] CURSOR LOG: restFunc done 6ef268b0-e9eb-4860-8df0-819cfe148265 2024-08-19 15:57:26.770 [info] CURSOR LOG: restFunc initiated 615ef513-85cc-4787-9f1c-49fb72d2f730 2024-08-19 15:57:27.015 [info] CURSOR LOG: Error in streaming cpp [canceled] This operation was aborted

Also using Zscaler for proxy http://127.0.0.1/9000

brad-luo avatar Aug 19 '24 06:08 brad-luo

Might be due to corp security deploying SSL clients prevented from requesting insecure connections and gateways that reject self signing in the certificate chain. Big companies desperate to both leverage the benefits of the tech and prevent access to it.

thefazzer avatar Aug 26 '24 15:08 thefazzer

Hitting the same issue (also ZScaler). We have the cert setup so that pretty much everything else, including Github Copilot, Nodejs, WSL, etc all work through ZScaler. The chat in cursor also works, but indexing and code edits don't.

It doesn't seem like Cursor's extension is quite standard under the hood so I'm not sure where I'd poke to debug this. We have access to the ZScaler log, and see the failed SSL Handshake coming from Cursor's requests there, but don't know what to do about it.

Phoenixmatrix avatar Aug 27 '24 14:08 Phoenixmatrix

Have you tried disabling http/2?

Here is how to do that, and I found that link on the forum. It helped in my case.

anmorgunov avatar Aug 29 '24 16:08 anmorgunov

Wow yeah that helped! Still doesn't fix the tab autocomplete, but fixes the side panel and cmd K. It seems like they've abandoned the github issues and just use their own forum. Thanks for the info @anmorgunov.

tonydavis629 avatar Aug 29 '24 19:08 tonydavis629

The tab actually works for me as well, but glad it helps at least partially

anmorgunov avatar Aug 29 '24 19:08 anmorgunov

Yeah, seems to be an unrelated issue. It works for me now on simple files. Thanks so much dude.

tonydavis629 avatar Aug 29 '24 19:08 tonydavis629

Have you tried disabling http/2?

Here is how to do that, and I found that link on the forum. It helped in my case.

Oh yeah, It does work!!!!

Appreciate it mate.

brad-luo avatar Aug 30 '24 00:08 brad-luo

Have you tried disabling http/2?

Here is how to do that, and I found that link on the forum. It helped in my case.

This fixed both cmd k and tab. Thank you!!!

anth-dinosaur avatar Aug 30 '24 03:08 anth-dinosaur

Closing this, solution here

Have you tried disabling http/2?

Here is how to do that, and I found that link on the forum. It helped in my case.

tonydavis629 avatar Aug 31 '24 16:08 tonydavis629

I can't even first login after install... can't use it ! I'm directed to the login page, but Cursor doesn't give a fack .. still waiting for login forever.

icemagno avatar Sep 17 '24 13:09 icemagno

For anyone still stuck, the solution by @anmorgunov worked, just add "cursor.general.disableHttp2": true to your settings

vmasrani avatar Sep 19 '24 18:09 vmasrani

For anyone still stuck, the solution by @anmorgunov worked, just add "cursor.general.disableHttp2": true to your settings

Can you describe in detail where to add this instruction? I don't know which file to modify.

zhaoxin111 avatar Sep 23 '24 00:09 zhaoxin111

@zhaoxin111 : Cmd/Ctrl + , then search for http2 But, it didn't help much for me. Cusor still don't see I''ve "business" plan. Tab don't work. I guess I'm stuck with alternatives of cursor for now.

Azreal42 avatar Sep 23 '24 07:09 Azreal42

Depending on how your corp proxy works, you may need to launch cursor from the terminal chaining it with whatever script enables proxy in your case. At least in my case it won't work otherwise.

anmorgunov avatar Sep 23 '24 21:09 anmorgunov

@anmorgunov could you post your terminal command example? My corp is using Lookout SASE Tunnel and replacing CA root certs, disabling http2 does not help my case...

eugenet8k avatar Sep 23 '24 21:09 eugenet8k

Try talking with sonnet about your specific case

anmorgunov avatar Sep 23 '24 21:09 anmorgunov

For anyone still stuck, the solution by @anmorgunov worked, just add "cursor.general.disableHttp2": true to your settings

Can you describe in detail where to add this instruction? I don't know which file to modify.

I just put it into my user settings, available via 'Open User Settings (JSON)' from the command palette and it worked

vmasrani avatar Sep 23 '24 23:09 vmasrani

Depending on how your corp proxy works, you may need to launch cursor from the terminal chaining it with whatever script enables proxy in your case. At least in my case it won't work otherwise.

Wdym ? We don't know how the requests are made, and why it doesn't work (logs are unclear). I suppose this is because my proxy (ZScaler) need the use of some custom signing certificates. But the certificates are registered in the windows store, i've added them in the node.js store (the tricks for copilot). But for cursor, if you know where/if they use a specific store, please enlight us. (btw sonnet won't be of any help here :) )

Azreal42 avatar Sep 24 '24 07:09 Azreal42

if you know where/if they use a specific store, please enlight us

mate, I'm not a sysadmin, I probably know less about proxies than you do.

I just said that in my particular case launching cursor as an app led to tab\cmd k not working, so I went, talked to sonnet for half an hour, and had a solution for my particular case in which everything works. I'll just say that I have zscaler as well and I didn't have to mess with it.

anmorgunov avatar Oct 04 '24 16:10 anmorgunov

@anmorgunov mate, I'm not a sysadmin, ...

definitely a teaser. Please post your solution for your particular case here or get out.

eugenet8k avatar Oct 04 '24 16:10 eugenet8k