Open josago97 opened 1 year ago
I am assuming this would close the PR #2765 correct? @josago97
If so, link this bug within the PR with closes tag and if/when PR is approved this will also be closed.
No, that PR doesn't solve this problem. When I was trying to solve this problem I noticed that the discord heartbeat was not being used and that is why I made the PR. As I have been testing, I think this problem has to do with a bad connection closure, in such a way that when it reconnects it gives an error due to residue from the previous disconnection.
Check The Docs
Verify Issue Source
Check your intents
Description
There is a problem with streaming audio when you are streaming for a long time. Using the audio streaming tutorial as an example, if you broadcast a radio station instead of streaming a file, a series of errors occur over the course of several hours, canceling and blocking a future stream. After transmission hours an error occurs The remote party closed the WebSocket connection without completing the close handshake. This error is followed by The server sent close 4006: "Session is no longer valid." After these errors, if you try to reconnect to the voice channel using the voiceChannel.ConnectAsync() method, it throws the System.TimeoutException: 'The operation has timed out' error, which prevents you from reconnecting until you restart the bot.
Version
3.12.0
Working Version
No response
Logs
Sample
No response
Packages
.NET 6
Environment
Windows 10 Pro x64 22H2 19045.3324 .NET 6.0.21