vscode icon indicating copy to clipboard operation
vscode copied to clipboard

[Extension] "write EPROTO" error while trying to download an extension through proxy

Open JabX opened this issue 10 years ago • 26 comments

  • 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.

JabX avatar Apr 10 '16 15:04 JabX

Is your proxy http or https? Is there any chance I can use it too to try to reproduce?

joaomoreno avatar Apr 11 '16 07:04 joaomoreno

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.

JabX avatar Apr 11 '16 10:04 JabX

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.

JabX avatar Apr 14 '16 16:04 JabX

Happy to know!

joaomoreno avatar Apr 14 '16 20:04 joaomoreno

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).

JabX avatar Apr 19 '16 08:04 JabX

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.

JabX avatar May 10 '16 07:05 JabX

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.

LunarBiscuit avatar May 17 '16 09:05 LunarBiscuit

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 avatar May 26 '16 21:05 JabX

@JabX Sounds like a separate issue, do you mind creating it? Attach npm's log as well.

joaomoreno avatar May 27 '16 05:05 joaomoreno

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

debapamdas avatar May 30 '16 09:05 debapamdas

Same issue here :( Really want to get VS Code to work.

vviikk avatar Jun 05 '16 07:06 vviikk

I have the same issue with Windows 7

electrohope avatar Jun 21 '16 22:06 electrohope

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).

JabX avatar Jul 11 '16 08:07 JabX

C'mon.... This has never been fixed. Am on 1.4.0

image

Can someone please fix this?

vviikk avatar Aug 05 '16 07:08 vviikk

@piggyslasher Is it possible for me to try using your proxy server for debugging and producing a fix?

joaomoreno avatar Aug 05 '16 09:08 joaomoreno

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?

vviikk avatar Aug 07 '16 11:08 vviikk

Do you happen to know which comments exactly helped you?

joaomoreno avatar Aug 08 '16 12:08 joaomoreno

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.

vviikk avatar Aug 09 '16 08:08 vviikk

Basically the proxy doesn't allow ssh connections out. Maybe that's the reason? Can you default to using https for pulling extensions?

vviikk avatar Aug 09 '16 08:08 vviikk

We only use HTTPS.

joaomoreno avatar Aug 09 '16 09:08 joaomoreno