Connect Timeout Error

I want to develop a Discord bot, written according to the discord.js document, but a problem occurred during runtime, prompting me Connect Timeout Error Hope you can help me, thank you very much
No description
No description
10 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Steven
StevenOP13mo ago
discord.js version v14.13.0 Node version v16.17.1
treble/luna
treble/luna13mo ago
Sounds like a network or firewall issue
Steven
StevenOP13mo ago
I turned off the firewall and turned on the VPN There is a problem with these two sentences await rest.put(Routes.applicationCommands(CLIENT_ID), { body: commands }); client.login(TOKEN); There seems to be a problem connecting to 'https://discord.com/api'
treble/luna
treble/luna13mo ago
Then thats not djs related but something on your side
Steven
StevenOP13mo ago
Yes, I think so too. But, how do I solve it? I've done everything I need to do, but the connection still times out. I've seen similar problems, but I haven't found a solution! Hello,I need help
Steven
StevenOP13mo ago
No description
No description
probablyraging
probablyraging13mo ago
As mentioned, it's not djs related, so you're unlikely to get help here. Try #useful-servers or Google
chewie
chewie13mo ago
failing to connect to the gateway sounds like you got banned from the api? either that or your network simply cant resolve the api route
Steven
StevenOP13mo ago
Thanks, I'm trying You need to set a proxy when connecting
Want results from more Discord servers?
Add your server