Opening handshake timeout
Hi,
I'm testing my bot and i make reboots often.
I have and
Opening handshake has timed out
when trying to launch client.login(<botToken>)
method, not sure if it comes from me or the API for hitting rate limit or whatever.
Resetting bot token does not help.
Currently I emptied my node_modules folder to reinstall from fresh.
Versions
- discord.js : v14.14.1
- node : v20.10.0
Can someone help on this ?
Some details below.4 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 OP
Enabling debug like this :
Gives this :
Here's my entrypoint :
And my DiscordClient class :
Note that this module is imported in a command sub-module too, but not calling anything, it's just used to get the native
this.client
to retrieve a user object from a userID
I think i fucked up something because even when it starts, sometime my commands are not registered, even if it shows a successfull registration in the logs.
If you come here thank you for taking the time ❤️ :blobreachReverse:
Bot's back online but i changed nothing so i guess it's temporary... until next reboot
Nah i'm hosting it myself, own server, own internet connection.
That's terrifying lol, hope it's not or it's because i fucked up at one point and made too many requests but it's temporaryThanks man, i'll monitor this
I made a circular reference yesterday night, perhaps that's it