-
-
Notifications
You must be signed in to change notification settings - Fork 732
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]: Gateway Thread Stuck Connecting on Oracle Cloud #2750
Comments
Note: changed from Verbose to Debug and the log returns one additional line ( If I manually set the gateway host then the following is logged. config.GatewayHost = "wss://gateway.discord.gg";
|
Try specifying the api version Also |
Also UPD: oops I've missed the fact it's a plugin |
Thanks, I literally just tried the Still seems to be locking somewhere though. No idea where the version 1.0.0 comes from - I'm using the NuGet package (updated to 3.12.0 today).
Yep, it's a plugin. The software it's a plugin for targets .NET Framework 4.8. Does Mono conflict with this? |
DNet used to have issues running on mono, so that can be one of the issues You have a couple of _ = Task.Run(async () =>
{
}); Wrap the whole handler with this => it should prevent the gateway from being blocked |
If I remove the event handlers that it says are blocking it goes back to the original problem, just hangs on Note: This is only specific to this server. On everything else I've tested on (Win & Linux but not aarch64) it progresses to |
Well, I don't know then |
Check The Docs
Verify Issue Source
Check your intents
Description
I have a Discord bot plugin for a game server management panel that is compiled as a class library. It works without issues on Windows and most Linux distros.
On Oracle Cloud servers (aarch64 architecture, image: Canonical-Ubuntu-22.04-aarch64-2022.11.06-0, 4 * OCPU, 24GB RAM) the gateway thread seems to be hanging on
Connecting
.I have tried to narrow down where the issue is but cannot get anything other than
Connecting
from the gateway.I have tested a python bot on the same server to verify it is not a network issue.
Not sure what else I can try to debug the issue and find the root cause.
Version
3.11.0
Working Version
No response
Logs
No stack trace, but debug message I've added shows the connection state being stuck:
Sample
Full code is at https://github.com/winglessraven/AMP-Discord-Bot, but my ConnectDiscordAsync method is below:
Packages
Plus "ModuleShared" version 2.4.5.4 from the server panel that the plugin is for.
The text was updated successfully, but these errors were encountered: