Discord bot stuck at "Preparing to connect to the gateway..." )
Posted by user_z4ylcp in discord-bots.
Hi everyone, My Discord bot is failing to connect on my current server node. My code is perfectly fine (my Express web server starts successfully on port 14591), but the Discord bot hangs infinitely and never throws a crash error. When I enabled debug logs, it gets stuck exactly here and doesn't move forward: Code snippet Attempting to connect to Discord Gateway... [DISCORD DEBUG] Provided token: [HIDDEN] [DISCORD DEBUG] Preparing to connect to the gateway... Because it's not giving a standard error and just waiting indefinitely, it seems like the node's IP address might be shadow banned or rate limited by Discord's Cloudflare. Is anyone else facing this issue? Can an support please look into the outbound connection to Discord for my node, or perhaps migrate my server to a different IP? Thanks!