Uncaught exception: ConnectTimeoutError: Connect Timeout Error

Keep getting this, hosting on my own server. It worked, then somehow it couldn't connect to a new shard since then couldn't launch the bot, kinda strange.
8 Replies
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
display
displayOP2mo ago
faint-bot@ / └── [email protected] just updated to 14.18, issue not solved Uncaught exception: ConnectTimeoutError: Connect Timeout Error (attempted addresses: 162.159.136.232:443, 162.159.128.233:443, 162.159.138.232:443, 162.159.137.232:443, 162.159.135.232:443, timeout: 10000ms) at onConnectTimeout (/home/nhuijser/faint-bot/node_modules/@discordjs/rest/node_modules/undici/lib/core/connect.js:237:24) at Immediate._onImmediate (/home/nhuijser/faint-bot/node_modules/@discordjs/rest/node_modules/undici/lib/core/connect.js:206:11) at process.processImmediate (node:internal/timers:478:21) { code: 'UND_ERR_CONNECT_TIMEOUT' } I was thinking I might be rate-limited or something
d.js docs
d.js docs2mo ago
Errors such as ECONNRESET, ConnectTimeoutError, SocketError: other side closed indicate a network issue * Free or shared hosting providers often come with significant limitations * Another indication of these issues are 'Unknown Interaction' errors.
display
displayOP2mo ago
I have my own linux server running in my own home network it has never given me this error in the last 4 years of hosting discord bots, so I doubt its that; it randomly stopped connecting to the shards
treble/luna
treble/luna2mo ago
It does point to a network issue though Its nothing related to djs
display
displayOP2mo ago
hm, will see. ty do you have any clue why it decided to stop? just wondering if there was any fixes made before Could it be something software related? Like my code messed up or something
Amgelo
Amgelo2mo ago
unless you configured network options like ws in your client constructor, no
display
displayOP2mo ago
aight, ty,

Did you find this page helpful?