Open myurkoski opened 6 years ago
Is this happening every time you try to start the bot?
No, strangely it happens after the bot has been running for nearly 24 hrs, happily servicing peoples requests the entire time.
If you would like, I can post a longer log dump, which will include logging from when I fired it up, as well as the other failure to date.
Looking at the code where the error event was emitted from, (discord.js/src/client/websocket/WebSocketConnection.js/371:17) it's described as "Emitted whenever the client's WebSocket encounters a connection error."
I'm no expert on this, but I suppose if connection errors are unhandled, you need to handle them yourself. It's simply a connection issue, so you don't need to post a longer log dump. You need to either have a fully stable internet or find a way to make it reconnect automatically.
If a connection error occurs after 24 hours, it's likely just your internet having some sort of timeout.
This just started happening once a day early in the morning. Bot runs fine, then crashed with the following outputs and stacktrace:
node --version results in v8.9.4
I believe there was a node.js update rolled out in the last couple days that could be related, though node.js is alien to me so I wouldn't know where to look for more details.
Please let me know if there is any other information that I can gather.