Fix Connect Timeout Error
everyone who has updated to discord.js V14 and on console get this: (It's an error about connection time, it seems that it takes time to connect, I don't know what but they should fix it soon)
You can solve it with the following
15 Replies
Don't think this is related to djs
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
@srgobi@是乐浅浅啊 this still an issue?
if so, that needs some debug logs
@是乐浅浅啊 doesn't look sharded, so i assume it's not shard specific?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Can you specify the exact request thats timeout or if it is all of them??
Y sometimes bot crash with that
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
@zenomic , could you add this to your main file:
And see if it provides a more accurate stack trace
If you seen fit, use a bin to send here
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Wdym? Bc djs uses undici under the hood
And the error is fixable by adding a custom agent to rest
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Request doesn't use fetch under thw hood?
Bc they say the error is fixed when you set a custom agent to the Rest client
Doesn't make sense the error beeing outside Rest
Nice
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Okay, thanks