Error Connecting to Discord Gateway
My Bot gets this error when trying to connect to Discord.
error connecting to gateway wss://gateway.discord.gg/?v=9&encoding=json, dial tcp: lookup gateway.discord.gg on 8.8.8.8:53: read udp 172.17.0.102:54949->8.8.8.8:53: i/o timeout
It works fine when I run this locally. Might this be a network issue on railway?
5 Replies
Project ID:
dd6e5995-7093-4b60-87a7-ca9defaf65b7
dd6e5995-7093-4b60-87a7-ca9defaf65b7
not a networking issue, but it's likely that your service landed on a box that has an IP banned by discord
Solution
Thank you. I redeployed it to a new box and now it works 🤙🏼
awesome, there's not too much railway can do about this kind of thing right now since these are shared ips, once railway comes out with static ip add-ons then this gamble won't be needed