-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Proxy support for extension gallery #69
Comments
I'm getting nearly the same thing although it never lists the available extensions for me. I get a OS: Windows 8.1 |
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". |
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. |
yeah, I met the same issue. |
same issue here, can't install extensions~ |
…gallery Proxy support for extensions #69
Not yet fixed. |
suggest to reference atom's implementation, by using strict-ssl = false |
@bpasero Out of curiosity, is there a general timeframe for releasing changes merged into master? |
Like always, we will maintain a monthly release cadence. There are plans to get an unstable update channel out there, but this might take a while. |
Thanks for the info! |
@bpasero Will it works with MS NTLM proxy? |
Not sure, @aeschli can you comment, it uses your proxy work. |
Sorry I don't know how MS NTLM is related to HTTP proxies. Do you have more information, @KindDragon ? |
What do you get if you run Namely, do the |
that's exactly what I tracked down while I was debugging, the parsing has something wrong and you're right i tracked it down to the https-proxy module which leverages on the node url parser. I Managed to track it down to the presence of a '#' character in my password. might be worth url-encoding the content maybe |
Good catch. You should url encode the password before putting it in a url yeah. |
I'm running CNTLM with Code 0.10.8 and resolved this error by adding the protocol to the http.proxy preference. I was attempting with "http.proxy": "localhost:3128" and I changed it to "https://localhost:3128" to get it working. Parsing the old URL in node's interactive console gave the following output, which put me on the right track (thanks!):
|
@xaqfox Wow man, this fixed the issue on my side. I bit sad that different projects need different a syntax for |
I finally found all the pieces needed for a complete solution working behind a corporate proxy on Windows: I use fidller as authentication proxy ( no need to set fiddler as system proxy replacement) Set environment variables: (also usefull for other tools) for SSL certificate problem: create a .coderc file in your user dir strict-ssl=false I also added it to the user settings file but that didn't help with the extentions Make sure you have updated to version 0.10.8 to have the fix for installing extentions |
It's work for me we %5С as delimiter between domain and login in username: http://superuser.com/a/395177/64719
|
I'm also having issues behind an NTLM proxy. I do not have any special characters in my password. I often do not get an error, but the list never loads. On v0.10.8. |
@kylewolfe What do you get if you run Namely, do the |
Try to specify the username with your domain |
Just getting back to trying to resolve my particular issue again. Installing v0.10.11 and adding "http://" to my http.proxy URL fixes my issue accessing the extensions list for browsing. Interestingly though, the traffic still doesn't show up on my Fiddler4 session. |
put below lines in file setting.json |
This was working with @joaomoreno 's fix a long time ago, but something broke it again along the way, and seems to be worse. Through an NTLM negotiated proxy, none of these work-arounds seem to work. I'm on Windows 7, VSCode Insiders v1.0.1-insider. I have the following set (and have tried with/without each of them):
Extensions never list when using |
@Barryrowe I have the same issue using VSCode Insiders. Which file do you have these settings? |
@Barryrowe @ranjith86 Can you test with the latest stable 1.0.0 and let me know if it is broken there as well? |
@ranjith86 they are in my settings.json @joaomoreno I will check, and move discussion to the open issue |
Just reply here. |
@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?
|
@joaomoreno thanks, that worked. The location of settings.json was wrong in my case. |
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. |
Alright, that sounds like #5596 then. Any chance I can use your proxy, btw? |
I had the same issue and added below lines to fix the problem |
Hi, it seems I missed something : Here is my configuration (Domain / User / Pass are Url Encoded in the following pictures) I've even tried to run "code" from a prompt command after a couple of : I've also tried http/https on my proxy scheme to be sure, and also with or without the encoded Domain / user / pass 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 |
You should check with your proxy administrator to know how authentication should happen. Usually the |
You're right, VsCode seems to work since this morning. I changed my password there was probably some network cache issue... Still I encounter something funny : As you see in the picture it's attempting to connect to the Project instead of nuget ^^ |
That is an issue with either Nuget or the dotnet tooling... I suggest you file an issue to them instead. |
Closing this discussion as everything's been said. |
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
The text was updated successfully, but these errors were encountered: