DJipgen
DIAdiscord.js - Imagine an app
•Created by DJipgen on 6/9/2023 in #djs-voice
AbortError: The operation was aborted
I have a bot, which is playing music. It connects to the channel and also plays the music but sometimes there is the following error and the music stops playing but the bot is still in the channel
AbortError: The operation was aborted
at AbortSignal.abortListener (node:events:958:14)
at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)
at AbortSignal.dispatchEvent (node:internal/event_target:636:26)
at abortSignal (node:internal/abort_controller:292:10)
at AbortController.abort (node:internal/abort_controller:323:5)
at Timeout.<anonymous> (/home/bots/dcbot/node_modules/@discordjs/voice/dist/index.js:2504:39)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
code: 'ABORT_ERR',
[cause]: DOMException [AbortError]: This operation was aborted
at new DOMException (node:internal/per_context/domexception:72:5)
at AbortController.abort (node:internal/abort_controller:321:18)
at Timeout.<anonymous> (/home/bots/dcbot/node_modules/@discordjs/voice/dist/index.js:2504:39)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
}
AbortError: The operation was aborted
at AbortSignal.abortListener (node:events:958:14)
at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)
at AbortSignal.dispatchEvent (node:internal/event_target:636:26)
at abortSignal (node:internal/abort_controller:292:10)
at AbortController.abort (node:internal/abort_controller:323:5)
at Timeout.<anonymous> (/home/bots/dcbot/node_modules/@discordjs/voice/dist/index.js:2504:39)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
code: 'ABORT_ERR',
[cause]: DOMException [AbortError]: This operation was aborted
at new DOMException (node:internal/per_context/domexception:72:5)
at AbortController.abort (node:internal/abort_controller:321:18)
at Timeout.<anonymous> (/home/bots/dcbot/node_modules/@discordjs/voice/dist/index.js:2504:39)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
}
18 replies
DIAdiscord.js - Imagine an app
•Created by DJipgen on 9/1/2022 in #djs-voice
ENOTFOUND a lot of times
Hey there, my bot get a lot of times the following error:
Error: getaddrinfo ENOTFOUND rotterdam1942.discord.media
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
Emitted 'error' event on G instance at:
at G.onNetworkingError (/node_modules/@discordjs/voice/dist/index.js:8:10124)
at z.emit (node:events:390:28)
at z.onChildError (/node_modules/@discordjs/voice/dist/index.js:6:266)
at q.emit (node:events:390:28)
at WebSocket.ws.onerror (/node_modules/@discordjs/voice/dist/index.js:1:7232)
at WebSocket.onError (/node_modules/ws/lib/event-target.js:220:18)
at WebSocket.emit (node:events:390:28)
at emitErrorAndClose (/node_modules/ws/lib/websocket.js:961:13)
at ClientRequest.<anonymous> (/node_modules/ws/lib/websocket.js:820:5)
at ClientRequest.emit (node:events:390:28) {
errno: -3007,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'rotterdam1942.discord.media'
}
Error: getaddrinfo ENOTFOUND rotterdam1942.discord.media
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
Emitted 'error' event on G instance at:
at G.onNetworkingError (/node_modules/@discordjs/voice/dist/index.js:8:10124)
at z.emit (node:events:390:28)
at z.onChildError (/node_modules/@discordjs/voice/dist/index.js:6:266)
at q.emit (node:events:390:28)
at WebSocket.ws.onerror (/node_modules/@discordjs/voice/dist/index.js:1:7232)
at WebSocket.onError (/node_modules/ws/lib/event-target.js:220:18)
at WebSocket.emit (node:events:390:28)
at emitErrorAndClose (/node_modules/ws/lib/websocket.js:961:13)
at ClientRequest.<anonymous> (/node_modules/ws/lib/websocket.js:820:5)
at ClientRequest.emit (node:events:390:28) {
errno: -3007,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'rotterdam1942.discord.media'
}
4 replies