-
-
Notifications
You must be signed in to change notification settings - Fork 743
Description
Check The Docs
- I double checked the docs and couldn't find any useful information.
Verify Issue Source
- I verified the issue was caused by Discord.Net.
Check your intents
- I double checked that I have the required intents.
Description
Recently I was affected by #3154 and had to jump to nightly builds to resolve the issue of joining voice channels.
Coming back to my bot today I am once again receiving The server sent close 4006: "Session is no longer valid." on connection to voice channels.
I have tried different voice regions, different nightly builds, latest stable release, different channels, different guilds. All show the exact same behavior. New issue or am I doing something wrong?
Version
3.18.0-nightly.20250822.614
Working Version
No response
Logs
System.Net.WebSockets.WebSocketException (0x80004005): WebSocket session expired
---> Discord.Net.WebSocketClosedException: The server sent close 4006: "Session is no longer valid."
at Discord.Net.WebSockets.DefaultWebSocketClient.RunAsync(CancellationToken cancelToken)
at Discord.Audio.AudioClient.OnConnectingAsync()
at Discord.ConnectionManager.ConnectAsync(CancellationTokenSource reconnectCancelToken)
at Discord.ConnectionManager.<>c__DisplayClass29_0.<<StartAsync>b__0>d.MoveNext()Sample
IAudioClient audioClient = await voiceChannel.ConnectAsync();Packages
Discord.Net 3.18.0-nightly.20250822.614
Discord.Net.Commands 3.18.0
Discord.Net.Interactions 3.18.0
libsodium 1.0.20.1
Microsoft.Extensions.Configuration 9.0.8
Microsoft.Extensions.Configuration.EnvironmentVariables 9.0.8
Microsoft.Extensions.Configuration.Json 9.0.8
Microsoft.Extensions.Configuration.KeyPerFile 9.0.8
Microsoft.Extensions.Hosting 9.0.8
SpotifyAPI.Web 7.2.1
YoutubeExplode 6.5.4
Environment
-OS: Windows 10 19045
-Architecture: x64
-SDK: .NET SDK 8.0.303