-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Comments
Did you configure your proxy settings in Code? |
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. |
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. |
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) |
Can you show me how you configured the proxy settings? |
My personal (user) //-------- 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, |
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. |
Can you figure out another extension that works? Maybe a theme...? |
Do you get any information at all when opening the Developer Tools console (F1, |
@joaomoreno I have same problem. And I configured the proxy settings by same pattern. But Developer Tools concole is empty (without errors or warnings). |
@vborzykin You have another problem. What is the value you've put in |
@joaomoreno No, pattern warning is second problem. my proxy setup is (from user's settings.json): |
@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? |
@joaomoreno |
But you can install ESLint from the product itself (not command line)? |
No, I can't install ESLint, without command line |
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. |
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 ( 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. |
@joaomoreno I found another extension that installs successfully: jscs. Tomorrow I'll check developer tools. |
@HeavyStorm The latest Insiders build has better error messages. Do you mind updating to that one? |
@joaomoreno I installed the latest Insiders and now all extensions seems to be installing correctly. Was anything changed in the extensions code? |
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. |
I've opened a new issue for my thing, issue #9790 . |
i cant install or view any extensions behind a corporate firewall |
Steps to Reproduce:
ext install npm intellisense
(for instance) → In the side menu, click install.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.
The text was updated successfully, but these errors were encountered: