#Connect Timeout Error

12 messages · Page 1 of 1 (latest)

pale ermine
#

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

stone wharfBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
pale ermine
#

discord.js version v14.13.0
Node version v16.17.1

south wing
#

Sounds like a network or firewall issue

pale ermine
#

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'

south wing
#

Then thats not djs related but something on your side

pale ermine
#

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!

pale ermine
#

Hello,I need help

fringe sparrow
echo spindle
#

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