question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Operation timed out on `Discord.WebSocket.SocketGuild.ConnectAudioAsync`

See original GitHub issue

Hi, since yesterday my bot stopped working with the following exception.

System.TimeoutException: The operation has timed out.
         at Discord.WebSocket.SocketGuild.ConnectAudioAsync(UInt64 channelId, Boolean selfDeaf, Boolean selfMute, Boolean external)
         at Discord.WebSocket.SocketGuild.ConnectAudioAsync(UInt64 channelId, Boolean selfDeaf, Boolean selfMute, Boolean external)
         at Discord.WebSocket.SocketVoiceChannel.ConnectAsync(Boolean selfDeaf, Boolean selfMute, Boolean external)
         at Template.Services.PlaybackService.CreateSession(IVoiceChannel channel) 

This is happening on two separate API keys and both when running the bot from my PC and a linux server. What could be the cause and how to fix this? I’ve tried updating Discord.Net to 3.9.0 but the issue persists.

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Reactions:8
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
sowa705commented, Mar 22, 2023

Ref: “all apps with Voice Connections using IP Discovery must send 74-byte UDP packets. IP Discovery requests sending the deprecated 70-byte packet will no longer receive a response.” - Discord Dev API announcement. This change was rolled out yesterday.

Is it known when will the nuget get published with the fix? Seems like a pretty major issue when all voice apps stop working

3reactions
cjbonncommented, Mar 21, 2023

Ref: “all apps with Voice Connections using IP Discovery must send 74-byte UDP packets. IP Discovery requests sending the deprecated 70-byte packet will no longer receive a response.” - Discord Dev API announcement. This change was rolled out yesterday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# Discord.net Bot disconnects after joining a voice channel
TimeoutException: The operation has timed out. at Discord.WebSocket.SocketGuild.ConnectAudioAsync(UInt64 channelId, Boolean selfDeaf, ...
Read more >
Discord.Net
TimeoutException: The operation has timed out. at Discord.WebSocket.SocketGuild.ConnectAudioAsync(UInt64 channelId, Boolean selfDeaf, Boolean selfMute, ...
Read more >
Issues connecting to discord -- repeatedly on ...
Hi all, I have been having an issue with Discord lately solely on one ... The connection issue is along the lines of...
Read more >
C# (CSharp) Discord Examples
C# (CSharp) Discord - 53 examples found. These are the top rated real world C# (CSharp) examples of Discord extracted from open source...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found