Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ext install " fails with EACCES error using corporate proxy #5596

Closed
StarNamer opened this issue Apr 21, 2016 · 8 comments
Closed

"ext install " fails with EACCES error using corporate proxy #5596

StarNamer opened this issue Apr 21, 2016 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions proxy Issues regarding network proxies
Milestone

Comments

@StarNamer
Copy link

StarNamer commented Apr 21, 2016

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 fa6d0f0
    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}

@dbaeumer dbaeumer added bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions labels Apr 21, 2016
@joaomoreno joaomoreno added info-needed Issue requires more information from poster and removed bug Issue identified by VS Code Team member as probable bug labels Apr 21, 2016
@joaomoreno
Copy link
Member

joaomoreno commented Apr 21, 2016

What's your proxy address?

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

@StarNamer
Copy link
Author

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.

joaomoreno added a commit that referenced this issue Apr 21, 2016
@joaomoreno
Copy link
Member

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

1-4 are the correct syntax: protocol://host:port. I have pushed 79b25ea 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?

@StarNamer
Copy link
Author

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
Copy link
Author

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

@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Jun 24, 2016
@joaomoreno joaomoreno added this to the Backlog milestone Jun 24, 2016
@joaomoreno
Copy link
Member

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 joaomoreno added the proxy Issues regarding network proxies label Jul 6, 2016
@jgrumboe
Copy link

jgrumboe commented Apr 4, 2017

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

@joaomoreno
Copy link
Member

Closing as a dupe of #22214

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions proxy Issues regarding network proxies
Projects
None yet
Development

No branches or pull requests

4 participants