Trying to start up my bot but it is getting AbortError Request aborted
No clue why this is happening.
16 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
AbortError: The user aborted a request.
A request took longer than the specified restRequestTimeout (15 seconds default), and was aborted to not lock up the request handler.
• This can be caused by an internal server error on Discord's side, or just a slow connection.
• In case of a slow connection, the restRequestTimeout
option in ClientOptions can be increased to prevent future AbortErrors.Ever since v14.6 I have been getting these errors. I have to restart my bot A LOT just to get it to come up.
More often than not I get the Abort Error
Same code as v14.5 so I'm not sure if anything changed.
All my code is here: https://github.com/DudeThatsErin/codinghelp-bot/commit/7646b19161e65c86984357d05ce75b929537afb1
Just not sure what to share.
Anyone?
message.reply({ content: '' });
maybe
and put it in line
and you are using a server to host the bot?
.
Yes, I am hosting it on my VPS just like I always have. I actually was messing with the server and reinstalled EVERYTHING from scratch.
but not always its reinstalling all
pm2 on?
Yes, that's what I am using to view the logs and run it rn.
Happens with
node .
or pm2but pm2 works diferent
try to start pm2
@mardroide I am...
ohh okey my bad
so the error its when you start the bot and no get online
Correct... happens when the bot tries to load the "ready" event.
Rn it works fine (just restarted twice) but earlier it wasn't.
so works eventually
you stop pm2 process when closing vps?
I never turn off my VPS
So my bot runs 24/7
thats logic
network connection work well on the vps?