Discord bot can't connect to gateway.discord.gg — client.login() hangs forever, no error
Posted by user_t2836p in discord-bots.
My Node.js (discord.js v14) bot suddenly can't connect to Discord's gateway. client.login() just hangs indefinitely — no error, no rejection, no timeout, nothing in the console after "Attempting login...". I confirmed it's not my code — I ran a completely bare bones test script with just: const client = new Client({ intents: [GatewayIntentBits.Guilds] }); client.login(TOKEN).then(...).catch(...); Same result: hangs forever with zero output, even after 15+ seconds. Already ruled out: Bot token is valid (regenerated it, still hangs) Privileged Gateway Intents (Server Members + Message Content) are both enabled No outage on discord's status page Tried a full server restart, same result This looks like the container can't reach gateway.discord.gg over WebSocket at all. Can someone check outbound network connectivity to Discord's gateway on my node? Server: [paste your server name/ID here] bold text