Describe the bug
Related to Discord
Since a few days, my bot crashes while playing music.
There seems to be a problem with youtube-ext integration since it works with the last version of play-dl.
To Reproduce
Steps to reproduce the behavior:
Play a music
Wait few seconds/minute
Bot crashes with error
On local
node:events:492
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on BodyReadable instance at:
at BodyReadable.emit (C:\Users\Utilisateur\Documents\discord-bot-v2\node_modules\undici\lib\api\readable.js:71:18)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
}
Node.js v18.17.1
On my VPS
node:events:495
throw er; // Unhandled 'error' event
^
SocketError: other side closed
at TLSSocket.onSocketEnd (/root/Nora/node_modules/undici/lib/client.js:1129:22)
at TLSSocket.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1368:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on BodyReadable instance at:
at BodyReadable.emit (/root/Nora/node_modules/undici/lib/api/readable.js:71:18)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: 'xxxx:xxxx:xx:xxxx::x',
localPort: 42700,
remoteAddress: undefined,
remotePort: undefined,
remoteFamily: undefined,
timeout: undefined,
bytesWritten: 1149,
bytesRead: 1081846
}
}
Node.js v18.18.2
Describe the bug Related to Discord Since a few days, my bot crashes while playing music. There seems to be a problem with youtube-ext integration since it works with the last version of play-dl.
To Reproduce Steps to reproduce the behavior:
On local
On my VPS
Expected behavior The bot should play the music
Screenshots N/A
Please complete the following information: