Network errors

Hi, i have two bots hosted on my Raspberry Pi 5 with pm2, i noticed that sometimes one of the bots when my internet goes down it throws some errors (they are in the screenshot) and doesn't reconnect to discord after the connection returns. My other bot instead doesn't give any errors and just reconnects as it should. It's strange because this doesn't happen everytime, i just tried unplugging the ethernet cable and this time all of the bots reconnected without errors. Is there a way to fix this?

My node version is
v20.10.0

The discord.js version on the bot that sometimes throws errors is
v14.15.3
and the bot that reconnects without errors as it should has version
v14.14.1
image.png
Was this page helpful?