client.login stopped working out of nowhere, can't start the bot
Nothing changed in code, the container was just sitting there.
Out of nowhere, the bot stopped responding to events so I hopped on to check what's going on
Stopped and tried to restart the bot and it gave this error code:
nothing changed in the code. so I tried debugging it, it crashes at
client.login()
and before calling client.on('ready',()=>{})
tried pnpm up
and updated to the last discord.js version (14.16.3), same error.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 OPpnpm list discord.js
:
node -v
:
container has internet access, dns is working fineErrors such as
ECONNRESET
, ConnectTimeoutError
, SocketError: other side closed
indicate a network issue
* Free or shared hosting providers often come with significant limitations
* Another indication of these issues are 'Unknown Interaction' errors.it was about Turkey banning Discord.
my cloud computing provider decided to apply those rules on their network over night so the bot lost access to Discord servers