I raised this as an issue on the VSCode github
I just installed Visual Studio Code
to try it out, but I ran into a problem almost immediately when trying to install any extension (following this).
After pressing ctrl + p
or F1
and then typing Extension
and selecting Install
, the program appears to search for a while. However, after a few seconds to a minute I see this error:
Error getaddrinfo ENOTFOUND marketplace.visualstudio.com marketplace.visualstudio.com:443
And if I click out of the window before this message appears:
Error socket hang up
Has anyone else seen the same error and managed to overcome?
As mentioned in the comments, this seems to be discussed here. However, I can't apply any of the suggested fixes:
Changing .host
to .hostname
in the file src/vs/workbench/node/proxy.ts
: I can't find this file on my system.
Changing the same (.host
to .hostname
) in the file C:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js
: I can't find the folder electron-main
or the file sharedProcessMain.js
on my machine.
Changing SSLStrict
to true
change DNSs to (8.8.8.8, 8.8.4.4)
I was able to install some extensions after my network admin disabled SSL Inspection on my machine.
This is not ideal as I wouldn't want this turned off for everything.
After re-enabling inspection, I set my User Settings
to
"http.proxyStrictSSL": true
I am still unable to download packages, but this does appear to be the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With