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

Can't install some extensions behind a corporate proxy #9305

Closed
bruno-brant opened this issue Jul 14, 2016 · 25 comments
Closed

Can't install some extensions behind a corporate proxy #9305

bruno-brant opened this issue Jul 14, 2016 · 25 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions verified Verification succeeded
Milestone

Comments

@bruno-brant
Copy link
Contributor

  • VSCode Version: 1.4.0-insider
  • OS Version: Microsoft Windows [Version 6.1.7601](Windows 7)

Steps to Reproduce:

  1. Open VS Code.
  2. CTRL+P → ext install npm intellisense (for instance) → In the side menu, click install.
  3. A clock icon appears on the extension icon in the left side of the window.
  4. Nothing else happens.

I can, however, install some extensions like ESLINT. My guess is that some of those extensions are stored on a different address, and my proxy is blocking access to it. However, I can't determine the URL of the extension package so I'm unable to check if this is the case.

Thanks a lot.

@joaomoreno
Copy link
Member

joaomoreno commented Jul 15, 2016

Did you configure your proxy settings in Code?

@bruno-brant
Copy link
Contributor Author

Yes, proxy is set on the settings JSON. That's why I can see the list of available extensions, but I can't download them.

@joaomoreno
Copy link
Member

Are you in China? Does it reproduce after restarting your machine?

All extensions come from the same place, so it doesn't make sense that some install and others don't.

@bruno-brant
Copy link
Contributor Author

bruno-brant commented Jul 15, 2016

No, I'm in Brazil. My proxy (websense) may be doing something funny. Is there a log I can look into?

(my machine isn't the only one affected, everyone on my team is having the same trouble)

@joaomoreno joaomoreno reopened this Jul 18, 2016
@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Jul 18, 2016
@joaomoreno
Copy link
Member

Can you show me how you configured the proxy settings?

@bruno-brant
Copy link
Contributor Author

bruno-brant commented Jul 18, 2016

My personal (user) settings.json contains the following lines:

    //-------- HTTP configuration --------
    // The proxy setting to use. If not set will be taken from the http_proxy and https_proxy environment variables
    "http.proxy": "https://user:password@webproxy:8080",
    "https.proxy": "http://user:password@webproxy:8080",
    // Whether the proxy server certificate should be verified against the list of supplied CAs.
    "http.proxyStrictSSL": false,

@bruno-brant
Copy link
Contributor Author

There has to be a reason why eslint installs and other stuff doesn't. If the packages comes from the same url, maybe it's the installation process that's failing. Do I need administrative permission to install extensions? Seems silly since I can just copy them, but might be something along these lines.

@joaomoreno
Copy link
Member

Can you figure out another extension that works? Maybe a theme...?

@bruno-brant
Copy link
Contributor Author

bruno-brant commented Jul 19, 2016

Tried some themes. As you can see, spacemacs and sourlick won't install, but Markdown Theme Kit did.

image

@joaomoreno
Copy link
Member

Do you get any information at all when opening the Developer Tools console (F1, Developer Tools)?

@vborzykin
Copy link

vborzykin commented Jul 21, 2016

@joaomoreno I have same problem. And I configured the proxy settings by same pattern. But Developer Tools concole is empty (without errors or warnings).
Also when I open View->Problems (Ctrl+Shift+M) on my settings.json, I get a warning message "String does not match the pattern of "^https?://[^:]+(:\d+)?$|^$""

@joaomoreno
Copy link
Member

@vborzykin You have another problem. What is the value you've put in http.proxy?

@vborzykin
Copy link

@joaomoreno No, pattern warning is second problem.
First problem is "Can't install extensions behind a corporate proxy" with same diagnostics.

my proxy setup is (from user's settings.json):
"http.proxyStrictSSL":false,
"http.proxy": "http://user:pass@webproxy:3128/",
"https.proxy": "https://user:pass@webproxy:3128/",

joaomoreno added a commit that referenced this issue Jul 22, 2016
@joaomoreno
Copy link
Member

@vborzykin Absolutely right about the regexp, pushed a fix.

Do you have the same problem as in you can install ESLint, but not other extensions?

@vborzykin
Copy link

vborzykin commented Jul 25, 2016

@joaomoreno
Yes, I have
When I try install extention by command line, I have 407 error.
code --install-extension dbaeumer.vscode-eslint Found 'dbaeumer.vscode-eslint' in the marketplace. Installing... Server returned 407

@joaomoreno
Copy link
Member

But you can install ESLint from the product itself (not command line)?

@vborzykin
Copy link

vborzykin commented Jul 25, 2016

No, I can't install ESLint, without command line

@joaomoreno
Copy link
Member

OK, you have another problem, since @HeavyStorm can install some extensions. Can you create another issue, showing us what exactly you see when you try to install an extension? Maybe a video recording? Thanks.

@brianary
Copy link

brianary commented Jul 25, 2016

We also use Websense, but it isn't a proxy, it's a decrypting firewall. It functions as a MitM (manager-in-the-middle), which requires adding the Websense local cert as a trusted authority.

For some really dumb reason, VS and VS Code do not seem to use the Windows list of Trusted Authorities, where the certs were placed by group policy. Right now we can choose just not to use any SSL content (most extensions), or disable all SSL checking (strict-ssl=false in user settings), which would be wildly irresponsible. So that's a huge hassle.

We really need either VS Code to honor imported Trusted Authorities from the Windows cert store, or a way to import a trusted cert into VS Code's special, unique snowflake cert store.

@bruno-brant
Copy link
Contributor Author

@joaomoreno I found another extension that installs successfully: jscs.

Tomorrow I'll check developer tools.

@joaomoreno joaomoreno changed the title Can't install extensions behind a corporate proxy Can't install some extensions behind a corporate proxy Jul 26, 2016
@joaomoreno
Copy link
Member

@HeavyStorm The latest Insiders build has better error messages. Do you mind updating to that one?

@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions and removed info-needed Issue requires more information from poster labels Jul 26, 2016
@joaomoreno joaomoreno added this to the August 2016 milestone Jul 26, 2016
@bruno-brant
Copy link
Contributor Author

@joaomoreno I installed the latest Insiders and now all extensions seems to be installing correctly. Was anything changed in the extensions code?

image

@joaomoreno
Copy link
Member

Not really... but maybe the fixes in the error handling case actually fixed something.

Glad to see you're unblocked. I'll close this, reopen pending if you see the issue again.

@brianary
Copy link

I've opened a new issue for my thing, issue #9790 .

@rebornix rebornix added the verified Verification succeeded label Sep 1, 2016
@pendar747
Copy link

i cant install or view any extensions behind a corporate firewall

@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 verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants