Discord.js: Something took to long to do

Created on 16 Jun 2017  路  7Comments  路  Source: discordjs/discord.js

When i run my code to start the bot it displays an error: Somthing took to long to do. Here is a screen shoot from it:
https://prnt.sc/fkgj4c
I also made another bot without any commands in the code just the starting code and it still didnt work

Further details:

  • discord.js version: 11.1.0
  • node.js version: 8.1.1
  • Operating system: Windows 7 64Bit

  • [ ] I have also tested the issue on latest master, commit hash:

already fixed

All 7 comments

You haven't indicated any specific issue you're seeing with the library. A reproducible code sample (which was requested in the issue template you've apparently disregarded) would be instrumental in determining the underlying cause of this issue.

but its not only in my code i tried it in more than one code and it still didn't work

anyway here is the code https://pastebin.com/snSf0Ljp

"Something Took Too Long" is not a code problem. It's a connection problem. This indicates that the connection between your code and the Discord websocket timed out. This can be because of a bad connection, an outgoing firewall, or a badly configured network. It's not a lib issue.

is there anyway to see what blocks the bot from running??

@IWasAndrerstajn , when you login

bot.login('MzIw');

Change it by :

bot.login('MzIw').catch(console.error);

This will display the error from Discord.js
I think that you have some trouble to connect, so let's see what Discordapi answers you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiritto picture tiritto  路  3Comments

ghost picture ghost  路  3Comments

Dmitry221060 picture Dmitry221060  路  3Comments

Alipoodle picture Alipoodle  路  3Comments

LLamaFTL picture LLamaFTL  路  3Comments