• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Bot keeps disconnecting from Discord

DGNVMusic

New Member
Hi there (again),

I want to ask how is it possible, that my Discord bot keeps throwing the errors:

Code:
2024-01-26T13:54:26+01:00 voice handler returned with: error from voice reader: read tcp [2a05:d014:970:4300:4df7:9bac:960e:b41a]:40020->[2606:4700:7::a29f:82eb]:443: use of closed network connection
2024-01-26T13:54:26+01:00 voice handler returned with: error from voice reader: websocket: close 4006: Session is no longer valid.
2024-01-26T13:54:20+01:00 reconnecting soon
2024-01-26T13:54:20+01:00 disconnected from discord
2024-01-26T13:54:20+01:00 error from conn reader: websocket: close 1006 (abnormal closure): unexpected EOF

What might be the issue in this case?

It runs on an Amazon Lightsail with Ubuntu 22.04 server with 2 vCPU's and 2GB of ram with a swapfile of 8GB

The Discord channel it's in is a Stage type channel.

If anyone has any idea what I can do, that would be amazing!

(To prevent IP address leaking, I changed the IP addresses to [ipv6 address] because it's on a ipv6 address.).

The version is the exact same as my previous thread
 

newiron8

New Member
That's normal, yes. For whatever reason Discord insists on requiring bots to reconnect every once in a while. As you can see, DSharpPlus handles that for you and reconnects automatically.



Kodi
 
Last edited:
Top