[Extension] "write EPROTO" error while trying to download an extension through proxy
- VSCode Version: Feb / March (didn't work before too anyway)
- OS Version: Windows (7 or 10)
I have configured my proxy settings in VSCode, and that works because I can search through extensions, and the "package.json module discovery feature" (I don't know how it's called) also works. It's just that when I click to download an extension I get a cryptic "write EPROTO" error. I tried various proxy configurations, but I didn't find anything that worked. Either I can connect or I can't, but I can never download.
Thanks for your time.
Is your proxy http or https? Is there any chance I can use it too to try to reproduce?
It's a company proxy so no you can't use it... I think it's a http proxy but I'm not sure. In any case it "works" the same with both 'http' and 'https' in the proxy url.
The brand new 1.0 release actually fixed this! I don't know if anyone did anything for this between the insider release and 1.0 but I'm glad it works now.
Happy to know!
Well, it turns out it only worked on my PC: my colleagues still have the error on their machines.
We have the exact same local config, the same global .npmrc, the same environnment variables (if any of that helps). The only difference we have if that I use Windows 10 and they're on Windows 7. And I used the insider version before the official release (which wasn't working for me anyway).
The new 1.1 release brought some more details in the error:
messageService.ts:128 - write EPROTO 0:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:y:\jenkins\workspace\electron-win-ia32\vendor\node\deps\openssl\openssl\ssl\s23_clnt.c:794
If any of that helps.
I have the same error on OSX Yosemite - tried the same things I used to get ATOM working but no luck so far. Would really love the fix.
I tried to build VS Code from source to investigate the problem, but it looks like I can't even fetch all the required dependencies when I run npm install because it needs to get vscode.d.ts from somewhere on Github but it can't (with the same error).
My proxy is configured correctly on both npm and git though.
@JabX Sounds like a separate issue, do you mind creating it? Attach npm's log as well.
Facing the same issue in latest vs code version 1.1.1. I am able to search through the extensions but getting error while installing write EPROTO 0:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:y:\jenkins\workspace\electron-win-ia32\vendor\node\deps\openssl\openssl\ssl\s23_clnt.c:794
Same issue here :( Really want to get VS Code to work.
I have the same issue with Windows 7
In the latest 1.3.0 version (with the new extension panel), installing an extension now simply hangs without any kind of error message (not even in the dev tools).
C'mon.... This has never been fixed. Am on 1.4.0

Can someone please fix this?
@piggyslasher Is it possible for me to try using your proxy server for debugging and producing a fix?
It's an internal proxy. Sorry. I only have access to it in our VPN. Atom plugins we're also quite hard to get working, but the solutions on this page helped me get it sorted:
https://github.com/atom/apm/issues/322#issuecomment-96430856
Do you think VSCode might have some similar issue?
Do you happen to know which comments exactly helped you?
It was the commend #322 that I linked to...
Also, in some cases, if node-gyp fails (it was normally node-gyp errors) I manually ran the following command.
HOME=~/.atom/.node-gyp/ "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.22.0" "--dist-url=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist" "--arch=darwin" "--ensure" "--verbose" "--proxy=http://10.9.1.80:8080"
But it was mostly the ATOM_NODE_URL fix that I got plugins to install in the first place.
Basically the proxy doesn't allow ssh connections out. Maybe that's the reason? Can you default to using https for pulling extensions?
We only use HTTPS.