typesync icon indicating copy to clipboard operation
typesync copied to clipboard

Error: read ECONNRESET

Open jlarmstrongiv opened this issue 3 years ago • 3 comments

It seems that typesync experiences intermittent connection issues often. Having a system to back off and retry would be nice.

✖  read ECONNRESET
Stack:
Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:220:20)
npm ERR! Lifecycle script `typesync:check` failed with error: 
npm ERR! Error: command failed 
npm ERR!   in workspace: @universaljs/[email protected] 
npm ERR!   at location: /home/ubuntu/actions-runner/_work/project 

jlarmstrongiv avatar Jun 28 '22 17:06 jlarmstrongiv

You're not wrong 😅

I never thought about it because it hasn't happened to me yet.

jeffijoe avatar Jun 28 '22 20:06 jeffijoe

I’ve been building my own personal monorepo with several packages and apps—unfortunately, typesync crashes with that error more than it passes 😅

I saw https://github.com/jeffijoe/typesync/blob/master/src/npm-client.ts and think something like https://www.npmjs.com/package/axios-retry could fit nicely

jlarmstrongiv avatar Jun 28 '22 21:06 jlarmstrongiv

I've been meaning to swap out axios for [npm-registry-fetch](https://github.com/npm/npm-registry-fetch) which I believe may include retries, but not sure.

I haven't had time to work on OSS for a while though.

jeffijoe avatar Jun 28 '22 21:06 jeffijoe