discord.js: ECONNRESET
Please describe the problem you are having in as much detail as possible:
Error: read ECONNRESET
at exports._errnoException (util.js:1022:11)
at TLSWrap.onread (net.js:569:26)
I’ve tried catching it in client disconnect and error events, yet they both don’t seem to be getting called. Supposedly this was supposed to be fixed over a year ago in: https://github.com/hydrabolt/discord.js/issues/694
Further details:
- discord.js version: 11.2.1
- node.js version: v8.9.4
- Operating system: Windows 10
- Priority this issue should have – please be realistic and elaborate if possible: This causes my bot to crash constantly and I cannot restart it, even with pm2. So pretty high for me.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 37 (12 by maintainers)
Well the only fix i know for this is, Your Internet
The ECONRESET means the process lost connection to the internet for too long, causing it to die
The fix for me was making a direct ethernet cable from my router to my raspberry pi
i get randomly mostly the same Error (at “2018-04-12T15:59:34.192Z”)
(using newset discord.js from npm)
i handle the client errors (console.log) and still get:
I also get this on latest master. It’s rare but it happens. I don’t use any kind of voice features.
EDIT: could add pics since it happened again on two of my bots. Both still on latest master as of the day i posted the comment.

It should definitely be fixed in voice-rewrite, not too sure about 11.2.1.