Spontaneous Connection reset by peer errors
BUG REPORT
Brief Description: At random points, but at least a few times per day, the bot will throw a ws close code of 1006, Connection reset by peer. This causes a lot of spam in the error channel out of nowhere.
Priority: (1-5, 5 being the most urgent) 3
We realistically have 2 options we can take, and 3 possible:
- Ignore the errors, possibly suppressing them.
- Do some very serious debugging to see where the issue is coming from.
At the moment, we cannot tell if this is due to some sort of cloudflare proxy, though we have been receiving a couple of those as wellCloudflare proxy isn't an issue since we do not use one - Rewrite the whole bot to match the structure and framework of the Cloud Services bot, which will be released in a new major.
Unless we are certain option 2 is being caused by a cloudflare proxy, then we will only have options 1 and 3 that we can do easily
Option 1 should be avoided though, since it is still technically an unclean closure of the websocket connection to Discord.
Option 3 also would take some time as testing is required to make sure everything works the same way.
Opinions would be greatly appreciated. Leave a comment in this issue and share your thoughts