VSCODE - Marketplace returns "ECONNREFUSED". Check the setting of "http.proxy"

I am new to Visual Studio. I just installed the Visual Studio Code (VSCODE). The first time I opened it and tried to install the extension for powershell. But when I go to the "Extensions" tab, it gives an error that the proxy settings have not been configured.

A pop-up window provided the option "Open user preferences" and opened the editor. In my understanding, I wrote the following two lines in the user settings file.

Our internal proxy server requires user authentication. How and where can I put user credentials. I think I get an error because I did not provide user details.

Screenshot

+5
source share
3 answers

Learned how. Proxy details must be specified in the following format. I used to use the wrong format.

My settings file looked something like the one below.

// Place your settings in this file to overwrite the default settings 

{ "http.proxy": "http:// user@domain.local : Password456@10.201.10.200 :8080", "http.proxyStrictSSL": false }

The domain username was domain \ user, and it was provided in the FQDN format of the user. Password456 - password for the user login 10.10.10.200:8080 - this is a proxy server

Hope this helps someone at some point in time.

+6
source

I solved this problem as @Tom Jacob Chirayil, but I had to do a little more. Here are the steps I followed:

  • First, find your proxy server by going to http: //wpad/wpad.dat . My company configuration had a bunch of proxies, and the one I used was at the very bottom in this format:

    return "PROXY subdomain.company.com:port";

  • Then click the Open User Settings button and add the following line to the settings.json file on the right, in brackets:

    "http.proxy": "http://subdomain.company.com:port"

    NB: I had to add http:// to the front of the proxy address that I pulled from wpad.dat .

  • Then save settings.json , restart VS code. (The IDK is for sure if you need to restart the VS code or not.)

+1
source

To add a point, it seems that a new version (1.5.1) has appeared with this problem. People on Mac, Linux, or Windows suffer from an β€œ econnrefused error” in VSCode.

In the new version (1.5.2) this will be fixed, until then we can use the night version.

Source: https://github.com/Microsoft/vscode/issues/11774

0
source

All Articles