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
10 Replies
- 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 staffdiscord.js version v14.13.0
Node version v16.17.1
Sounds like a network or firewall issue
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'
Then thats not djs related but something on your side
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
As mentioned, it's not djs related, so you're unlikely to get help here. Try #useful-servers or Google
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
Thanks, I'm trying
You need to set a proxy when connecting