vscode icon indicating copy to clipboard operation
vscode copied to clipboard

"ext install " fails with EACCES error using corporate proxy

Open StarNamer opened this issue 10 years ago • 8 comments

I originally reported this on StackOverflow but it was suggested by Benjamin Pasero that I log this as an issue.

I am working behind a corporate firewall which has outgoing authentication by Active Directory username. When I try the "ext install " command, after a some time I get the message "Error connect EACCES 191.238.172.191:443".

I've tried setting the "http.proxy" value to all variations of FQDN and IP address,both with and without the "http://" prefix and also tried setting "http.proxyStrictSSL" both true and false, always with the same result.

There do not seem to be any settings to specify username and password or any other options for outgoing authentication.

  • VSCode Version 1.0.0 Commit fa6d0f03813dfb9df4589c30121e9fcffa8a8ec8 Date 2016-04-13T14:08:36.599Z Shell 0.35.6 Renderer 45.0.2454.85 Node 4.1.1
  • OS Version: Window 10.0.10856

Steps to Reproduce:

Type {ctrl-P}ext{space}install{space}

StarNamer avatar Apr 21 '16 10:04 StarNamer

What's your proxy address?

Note that you must restart Code after setting the http.proxy and http.proxyStrictSSL settings.

joaomoreno avatar Apr 21 '16 14:04 joaomoreno

OK. I tried all the tests again, restarting Code between each one.

  1. "http.proxy": "http://10.200.68.75:8080/", "http.proxyStrictSSL": true

Does nothing. Command line closes after a minute or so. No error.

  1. "http.proxy": "http://proxy2.emr.com:8080/", "http.proxyStrictSSL": true

Does nothing. Command line closes after a minute or so. No error.

  1. "http.proxy": "http://proxy2.emr.com:8080/", "http.proxyStrictSSL": false

Does nothing. Command line closes after a few seconds. No error.

  1. "http.proxy": "http://10.200.68.75:8080/", "http.proxyStrictSSL": false

Does nothing. Command line closes after a minute or so. No error.

  1. "http.proxy": "10.200.68.75:8080", "http.proxyStrictSSL": false

There's a blue line repeatedly sliding across under the command line. Then get "Error connect EACCES 191.238.172.191:443"

  1. "http.proxy": "10.200.68.75:8080", "http.proxyStrictSSL": true

There's a blue line repeatedly sliding across under the command line. Then get "Error connect EACCES 191.238.172.191:443"

  1. "http.proxy": "proxy2.emr.com:8080", "http.proxyStrictSSL": true

There's a blue line repeatedly sliding across under the command line. Then get "Error connect EACCES 191.238.172.191:443"

  1. "http.proxy": "proxy2.emr.com:8080", "http.proxyStrictSSL": false

There's a blue line repeatedly sliding across under the command line. Then get "Error connect EACCES 191.238.172.191:443"

Our automatic proxy detection (WPAD) returns either proxy-man.emr.com or proxy-war.emr.com, but currently both are aliases for proxy2.emr.com, hence have address 10.200.68.75

Pinging proxy2.emr.com [10.200.68.75] with 32 bytes of data: Reply from 10.200.68.75: bytes=32 time=1ms TTL=61

Pinging proxy-war.emr.com [10.200.68.75] with 32 bytes of data: Reply from 10.200.68.75: bytes=32 time<1ms TTL=61

Pinging proxy-man.emr.com [10.200.68.75] with 32 bytes of data: Reply from 10.200.68.75: bytes=32 time=1ms TTL=61

Obviously, normal browsing is working fine.

StarNamer avatar Apr 21 '16 16:04 StarNamer

Thanks for the many details, let's catch this sucker!

1-4 are the correct syntax: protocol://host:port. I have pushed 79b25eaac88479ff0d374d0dba0317f3ba5228f1 which adds a regular expression validator, so you'd get a warning next time you try to configure it like 5-8. 👍

No error tells me the request is working but the proxy is somehow returning an empty response or similar...

Let's try something else... what happens if you use "https://10.200.68.75:8080" and true?

joaomoreno avatar Apr 21 '16 20:04 joaomoreno

Apologies for the delay. Using https: as a prefix (and both true and false) and the command appears to do nothing. No blue bar, no error message. The command window just closes after a time.

StarNamer avatar Apr 25 '16 14:04 StarNamer

I just tried version 1.2 with the settings as in 1. above. Still does nothing. Should the newer version have fixed anything?

StarNamer avatar Jun 24 '16 10:06 StarNamer

No, the only change we pushed was about warning if the syntax of http.proxy was invalid. Unfortunately we still don't have a fix for your issue.

joaomoreno avatar Jun 24 '16 11:06 joaomoreno

Hi, just tried with latest version 1.10.2 under RHEL7 with everything set: http_proxy/https_proxy as environment variable and in settings.json. Extentions seem to still ignore these settings. Funny that "check for updates" is using the proxy settings. Is there still no fix or workaround for this? How can i help? thx, Johannes

jgrumboe avatar Apr 04 '17 21:04 jgrumboe

Closing as a dupe of #22214

joaomoreno avatar Apr 06 '17 08:04 joaomoreno