My bot routinely disconnects multiple times a week and never comes back up, and the process just stays running.
The error I get is [2024-07-09 21:13:39 +00:00] [110 /HeartbeatFai] [Crit ] Server failed to acknowledge more than 5 heartbeats - connection is zombie
Once these start, the bot goes unresponsive until I restart the process
I've tried everything I've seen mentioned in this discord involving this error including:
- was on a nightly originally, upgraded to 4.4.6 stable
- added event handlers for ClientErrored and SocketErrored
- calling client.ReconnectAsync(true) in either handler
- setting ReconnectIndefinitely = true in the Client Constructor
None of these seem to fix the issue or have any impact.
What am I missing? I run this bot on the same box as another bot and do not encounter this issue so that leads me to believe it's something I need to do in my code rather than an external factor
Guidance is much appreciated 🙏