Skip to content

Proxy support for extension gallery #69

Closed

Description

Whenever I try to install any extension, using ext install, I get a connect ETIMEDOUT 191.238.172.191:443 error.

Trying to navigate to https://191.238.172.191 in the browser produces a warning regarding the certificate being valid only for *.market.visualstudio.com, but I'm allowed to proceed.

Shouldn't VSCode try to connect to the name instead of the IP?

I'm behind a proxy, VSCode updates just fine behind it, and also lists the available extensions. The firewall here logs the invalid certificate but allows the connection to proceed. Doesn't look like a problem in my end...

OS: Windows 7
VSCode: 0.10.1

Activity

  1. RefractedPaladin commented on Nov 18, 2015

    @RefractedPaladin

    I'm getting nearly the same thing although it never lists the available extensions for me. I get a "self signed certificate in certificate chain" error but I believe it is related to this issue as the rest is the same as well.

    OS: Windows 8.1
    VSCode: 0.10.1

  2. pedrosousa commented on Nov 18, 2015

    @pedrosousa

    Currently using ZScaler as (company) proxy. It usually needs its own certificate (acting as a MITM) to be considered in order not to have the following error: "unable to get local issuer certificate".
    There should be either a "valid certificates" configuration (accepting a folder or a file path) or a "do not validate the certificate chain" boolean setting.

  3. CL0SeY commented on Nov 19, 2015

    @CL0SeY

    It seems like vscode is ignoring the "http.proxy" configuration when downloading extensions. For me, it works fine when listing extensions.

    So, it's getting the IP resolved and connecting directly, rather than using a proxy.

  4. itbaby commented on Nov 19, 2015

    @itbaby

    yeah, I met the same issue.

  5. blastmann commented on Nov 19, 2015

    @blastmann

    same issue here, can't install extensions~

  6. changed the title [-]Getting "connect ETIMEDOUT 191.238.172.191:443" when trying to install extensions[/-] [+]Proxy support for extension gallery[/+] on Nov 19, 2015
  7. added a commit that references this issue on Nov 19, 2015
  8. added this to the milestone on Nov 19, 2015
  9. bpasero commented on Nov 19, 2015

    @bpasero
    Contributor

    Not yet fixed.

  10. removed this from the milestone on Nov 19, 2015
  11. 110 remaining items

  12. Barryrowe commented on Apr 26, 2016

    @Barryrowe

    ranjith86 they are in my settings.json
    It looks like this is an ongoing issue and being worked on #5596

    João Moreno (@joaomoreno) I will check, and move discussion to the open issue

  13. joaomoreno commented on Apr 26, 2016

    @joaomoreno
    Contributor

    Just reply here.

  14. ranjith86 commented on Apr 26, 2016

    @ranjith86

    João Moreno (@joaomoreno) for what ever reason, I can't open VS code on my machine. Only VSCode Insiders works. My settings.json file is as below, it is currently in my project folder.... is that right location?

    {
      "http.proxy": "http://localhost:8888",
      "https.proxy": "http://localhost:8888",
      "http.proxyStrictSSL": false
    }
    
  15. joaomoreno commented on Apr 26, 2016

    @joaomoreno
    Contributor

    The right location can be found with:

    image

  16. ranjith86 commented on Apr 26, 2016

    @ranjith86

    João Moreno (@joaomoreno) thanks, that worked. The location of settings.json was wrong in my case.

  17. Barryrowe commented on Apr 26, 2016

    @Barryrowe

    I'm getting similar behavior in stable v1.0.0. The difference is that the blue loading bar doesn't scroll across the bottom of the console input. It still just disappears without an error message.

    if I completely remove the http.* settings, the blue loading bar shows, and I do get a ETIMEDOUT error. So it seems the VS code is talking to the proxy when configured, but the response might be empty for some reason coming back.

  18. joaomoreno commented on Apr 26, 2016

    @joaomoreno
    Contributor

    Alright, that sounds like #5596 then. Any chance I can use your proxy, btw?

  19. tebeco commented on May 24, 2016

    @tebeco

    Hi, it seems I missed something :

    Here is my configuration (Domain / User / Pass are Url Encoded in the following pictures)
    image
    image

    DevTools :
    image

    I've even tried to run "code" from a prompt command after a couple of :
    SET HTTP_PROXY="...."
    SET HTTPS_PROXY="...."

    I've also tried http/https on my proxy scheme to be sure, and also with or without the encoded Domain / user / pass
    The result is always the same ==> HTTP 407 (Proxy Authentication Required).

    CNTLM is definitly NOT an option for multiple good reasons that i won't discuss here. I'd like to solve this issue within VsCode configuration

    FYI : Visual Studio 2013 / 2015 / dotnet.exe (via command line) / npm / ... WORKS with the proxy perfectly and the URI : https://api.nuget.org/v3/index.json is also accessible from the network here

  20. joaomoreno commented on May 24, 2016

    @joaomoreno
    Contributor

    You should check with your proxy administrator to know how authentication should happen. Usually the http://user:password@host:port/ scheme works.

  21. tebeco commented on May 25, 2016

    @tebeco

    You're right, VsCode seems to work since this morning. I changed my password there was probably some network cache issue...
    I've got access to the Store Extension

    Still I encounter something funny :
    On the computer I got vs2013.5 vs2015.2, vsCode (latest rtm)
    I've installed the .NetCore 1.0.0 Preview 1 (NetCore RC2 + Tooling CLI preview)
    online "cli-samples" does not works (some work & some don't)
    New templates created from VStudio Works from VS & Command line but not on VsCode
    I'm wondering if the issue comes from Nuget/Omnisharp or something else when everything is linked together

    As you see in the picture it's attempting to connect to the Project instead of nuget ^^

    image

  22. joaomoreno commented on May 25, 2016

    @joaomoreno
    Contributor

    That is an issue with either Nuget or the dotnet tooling... I suggest you file an issue to them instead.

  23. joaomoreno commented on May 25, 2016

    @joaomoreno
    Contributor

    Closing this discussion as everything's been said.

  24. locked and limited conversation to collaborators on May 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugimportanton-testplanverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions