-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: A task is cancelled error after the bot has disconnected #2679
Comments
Idk if this will ever get fixed (at least until v4) |
Right, I think that might be the reason why though. Because when I was using v3.9 it doesn't print the TaskCanceledException error whilst with v3.10 or later, it does printed out a error. |
v4 still is not out. |
Exactly. I'm not too sure about v4. I'm way concerned about this. Maybe it could be the change of .NET Framework or something. |
Check The Docs
Verify Issue Source
Check your intents
Description
I've been updated the latest version of Discord.Net and when I connect the bot, it's working fine. But when I click on disconnect button (bear in mind that I'm doing this on WinForms in C#) and this error came up like this. (see logs)
This issue seems to be doing this on versions that is higher than 3.9
Version
Version that is higher than 3.9
Working Version
No response
Logs
20:15:12 Discord Discord.Net v3.10.0 (API v10)
20:15:13 Gateway Connecting
20:15:14 Gateway Connected
20:15:15 Gateway Ready
20:15:22 Gateway System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Discord.ConnectionManager.<>cDisplayClass29_0.<b0>d.MoveNext()
20:15:22 Gateway Disconnecting
20:15:22 Gateway Disconnected
Sample
No response
Packages
Discord.Net.Commands v3.10.0
Discord.Net.Core v3.10.0
Discord.Net.Interactions v3.10.0
Discord.Net.Rest v3.10.0
Discord.Net.Webhook v3.10.0
Discord.Net.WebSocket v3.10.0
MySql.Data v6.10.9
Newtonsoft.Json v13.0.3
The text was updated successfully, but these errors were encountered: