New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something took to long to do #1604

Closed
IWasAndrerstajn opened this Issue Jun 16, 2017 · 6 comments

Comments

Projects
None yet
5 participants
@IWasAndrerstajn
Copy link

IWasAndrerstajn commented Jun 16, 2017

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:

@appellation

This comment has been minimized.

Copy link
Member

appellation commented Jun 16, 2017

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.

@IWasAndrerstajn

This comment has been minimized.

Copy link
Author

IWasAndrerstajn commented Jun 16, 2017

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

@IWasAndrerstajn

This comment has been minimized.

Copy link
Author

IWasAndrerstajn commented Jun 16, 2017

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

@eslachance

This comment has been minimized.

Copy link
Contributor

eslachance commented Jun 16, 2017

"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.

@IWasAndrerstajn

This comment has been minimized.

Copy link
Author

IWasAndrerstajn commented Jun 17, 2017

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

@dayxhep

This comment has been minimized.

Copy link

dayxhep commented Jun 29, 2017

@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

@iCrawl iCrawl closed this Jul 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment