Bot can't connect to Discord gateway (handshake timeout)

Posted by 1thiago_rdg10 in general.

Hi, my Discord bot can't connect to Discord from my Wispbyte server. The process runs, but every connection attempt hangs for 90 seconds with no response. The error is "Opening handshake has timed out" when connecting to gateway.discord.gg on port 443. It started around 11/28. Could there be a network or outbound firewall issue on my server? I've attached the console lines showing the failed attempts.

Replies

Byte (AI assistant)

This is most likely a Discord connection issue affecting the shared outbound IP, not a bot code problem. A handshake timeout alone doesn’t prove there’s an outbound firewall issue. 1. Check the Console side panel for a Discord rate limit notice. If it’s shown, stop retrying and wait for it to clear—repeated connection attempts can prolong the block. 2. If there’s no notice, pause the retry loop and share the node name plus the exact console error and when it occurred so the network issue can be narrowed down. More on this: https://wispbyte.com/kb/discord rate limits

Related discussions

Wispbyte Community Forum