Vscode-vsce: Can't publish extension (ERROR read ECONNRESET)

Created on 6 May 2020  ·  20Comments  ·  Source: microsoft/vscode-vsce

Lately I'm having issues publishing extension. It's been going on for few days. Yesterday I managed to get it published after maybe 20 tries.

It times out after a while with
ERROR read ECONNRESET

VSCE 1.75.0
Node v14.0.0

needs more info

Most helpful comment

I am encountering this issue on two separate machines. Each running vsce 1.81.1 and node 14.15.0. When I use 'vsce publish', it spends a bit of time trying to publish before returning 'ERROR read ECONNRESET'.

I upgraded to node 15.2.0 on one machine and it then worked fine.

All 20 comments

Are you behind a proxy? Can you reproduce in another machine? In the same machine but a different network, in case it's a laptop?

No proxy. I also tried with VPN from different locations so it shouldn’t be a routing problem. Weird thing is that it works occasionally (maybe one in 20 tries).

I'm having the same problem

Publishing [email protected]...
ERROR  read ECONNRESET

Times out after 1m10.037s

I have downgraded Node.js version to 13.14.0 from 14.2.0 and was able to publish the extension.

@knopp Can you check @s0kil's workaround, whether that fixes it for you as well?

I'm having the same issue today! I am on node v14.2.0 and was able to publish yesterday! same theme extension and some changes, I can't publish today, above that I think the versions are messed up as well.

I am not behind any proxy, same env as last publish.
image

$ node -v
v14.2.0
$ vsce -V
1.75.0

@joaomoreno Hi, I finally gave up and installed nodeJS version 13.14.0 and I was able to publish without any issue. I just used NVM for windows to switch versions and it worked like a charm.

I'm encountering the same issues.

@knopp @musm Does downgrading Node work for you?

I wasn't able to reproduce this recently. Seems intermittent.

Oddly I also now can't reproduce it.

👍 Let me know if it comes back.

I've been having this issue past the 24 hours. Not being able to publish a new version of the extension.

❯ node -v
v14.7.0
❯ vsce -V
1.78.0
Publishing [email protected]...
 ERROR  read ECONNRESET

edit: I ended up downgrading node as well, which worked

Same issue here. sudo n 13.14.0 worked for me.

Had the same issue on Arch Linux, downgrading from 14.9.0-1 to 12.18.3-1 (LTS nodejs-lts-erbium) solved the problem.

Also having this issue on Arch Linux:

$ node -v
v14.12.0
$ vsce -V
1.80.0
$ vsce package
Executing prepublish script 'npm run vscode:prepublish'...

> [email protected] vscode:prepublish [snip]/vscode-teraterm-lang-2
> npm run compile


> [email protected] compile [snip]/vscode-teraterm-lang-2
> tsc -p ./

 DONE  Packaged: [snip]/teraterm-lang-2/vscode-teraterm-lang-0.1.0.vsix (16 files, 26.49KB)
$ vsce publish
Executing prepublish script 'npm run vscode:prepublish'...

> [email protected] vscode:prepublish [snip]/vscode-teraterm-lang-2
> npm run compile


> [email protected] compile [snip]/vscode-teraterm-lang-2
> tsc -p ./

Publishing [email protected]...
 ERROR  read ECONNRESET

As @caasi-dev says, downgrading to 12.18.3-1 (LTS nodejs-lts-erbium) fixes the problem.

I encounter this problem whit node 14.9.
I fixed this with nvm use 12.18.4

For the record, I also encountered the same issue today with the LTS version of node 14. I was able to publish multiple extensions during the previous weeks (and yesterday) with the same version. And today, ECONNRESET all the way...
Moving to node 15 solved the issue, but left a strange taste in the mouth :) Good luck on finding the root cause, it seems a nasty issue.

I am encountering this issue on two separate machines. Each running vsce 1.81.1 and node 14.15.0. When I use 'vsce publish', it spends a bit of time trying to publish before returning 'ERROR read ECONNRESET'.

I upgraded to node 15.2.0 on one machine and it then worked fine.

Been working fine for weeks. Wouldn't work for last two days. Upgraded to node v15.9.0 and it worked instantly.

I had the same issue with Node v14.15.2. Followed @ArturoDent's suggestion and updated to v15.12.0, it then worked just fine. I recommend only adding node v15 in the extension folder instead of updating it globally, to keep working with the LTS.
Just go into the folder/repository of the extension you want to publish with vsce, run npm install node without the -g flag and then run your vsce publish.

Was this page helpful?
0 / 5 - 0 ratings