"Error: Something Took Too Long" Fix

“Something Took Too Long” is not the code-related issue or it is not being thrown because of any code issue. Instead, It’s a connection problem. This symbolizes that the connection between your code and the Discord web socket has timed out. This may occur because of a bad connection, an outgoing firewall, or a badly configured network. Henceforth, it is not Discord.js-related issue.

Furthermore, add the following two lines of codes to your project for more specific error:

client.login('Client Token Here').catch(console.error);

And lastly:

client.on('error', (err) => console.error(err));

Cheers and please mention me if you have any further issue. Again the issue is not throwed because of Discord.js.

3 Likes

Didn’t work still have isuses, it still says it took too long.
Project name is coconut-era

No, @chroventer’s suggestion is not the solution, it’s just a way of identifying the error and why the connection might not be working.

Yes I realize and nothing outputs to console.

The errors are outputted in the Glitch Logs. And if you’re project is facing the ‘Something took too long to do’, report your project name here: Discord Ban mega-thread the second! (Discord bot / Something took too long to do)