discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.47k stars 3.97k forks source link

AbortError: The user aborted a request. #3498

Closed JusteLoneWolf closed 5 years ago

JusteLoneWolf commented 5 years ago

I have this error in log when one command was execute, I already reinstall discord.js

I use Discord.js 12

Androz2091 commented 5 years ago

I regularly have the same problem, but I can't find the cause...

JusteLoneWolf commented 5 years ago

Reassuring :/

vladfrangu commented 5 years ago

This is a bit of a duplicate of https://github.com/discordjs/discord.js/issues/3471

Also, next time, don't delete the template. It exists for a reason.

danbulant commented 4 years ago

Getting the same error. Bot runs just fine for x hours (or even days) but then I get this error.

It's UnhandledRejection, full output:

 [REJECTION] HTTPError [AbortError]: The user aborted a request.
     at RequestHandler.execute (PROJECT_PATH/node_modules/discord.js/src/rest/RequestHandler.js:107:21)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
   code: 500,
   method: 'get',
   path: '/gateway/bot'
}

(the [REJECTION] is added there by my logger, meaning it's Unhandled rejection)

LeManock commented 4 years ago

Getting the same error. Bot runs just fine for x hours (or even days) but then I get this error.

It's UnhandledRejection, full output:

 [REJECTION] HTTPError [AbortError]: The user aborted a request.
     at RequestHandler.execute (PROJECT_PATH/node_modules/discord.js/src/rest/RequestHandler.js:107:21)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
   code: 500,
   method: 'get',
   path: '/gateway/bot'
}

(the [REJECTION] is added there by my logger, meaning it's Unhandled rejection)

I have the same problem and I am waiting for a response from Discord

vladfrangu commented 4 years ago

Peeps, two things

  1. This is a closed (duplicate) issue; you can check more and a proposed library fix on #3471
  2. This is not necessarily on Discord's end; and most likely you won't notice once we implement the fixes.
kety-folf commented 4 years ago

HTTPError [AbortError]: The user aborted a request. at RequestHandler.execute (/home/pi/node_stuff/Kety_folfs_bot_2_0/node_modules/discord.js/src/rest/RequestHandler.js:107:21) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) { code: 500, method: 'post', path: '/channels/735679498774642749/messages' } i get this with my bot

ali01b commented 3 years ago

This is an error happening within the discord.js library if a web request is stuck for a long time, which might happen due to an outage or bad internet connection. Those connections are killed with that error message to free resources.

Those errors should not be fatal and can be ignored.

robin-fc commented 3 years ago

HTTPError [AbortError]: The user aborted a request. at RequestHandler.execute (/home/pi/node_stuff/Kety_folfs_bot_2_0/node_modules/discord.js/src/rest/RequestHandler.js:107:21) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) { code: 500, method: 'post', path: '/channels/735679498774642749/messages' } i get this with my bot

Have you resolved this 500 problem?

NotSoEvilDead commented 1 year ago

This is an error happening within the discord.js library if a web request is stuck for a long time, which might happen due to an outage or bad internet connection. Those connections are killed with that error message to free resources.

Those errors should not be fatal and can be ignored.

This is the correct answer. Whoever maintains discord.js should have fixed this a LONG time ago.