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

1 Like