LakhindarPal / discord-player-bot

A feature-rich, Discord music bot that supports multiple streaming platforms,with Button control, has Audio filters, and is easy to self-host with Docker
https://github.com/LakhindarPal/discord-player-bot/blob/main/docs/README.md
GNU General Public License v3.0
142 stars 28 forks source link

Audio skipping | ECONNRESET and UND_ERR_SOCKET #155

Open sentientyeet opened 1 month ago

sentientyeet commented 1 month ago

Describe the bug Getting ECONNRESET and UND_ERR_SOCKET a bunch, songs end up skipping parts.

To Reproduce Steps to reproduce the behavior: Play music = Songs skip/cut check docker logs [container]

Expected behavior Not skipping.

Screenshots N/A

Additional Information:

Error log

TypeError: terminated
    at Fetch.onAborted (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/fetch/index.js:1939:49)
    at Fetch.emit (node:events:519:28)
    at Fetch.terminate (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/fetch/index.js:94:10)
    at Object.onError (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/fetch/index.js:2110:34)
    at Request.onError (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/core/request.js:330:27)
    at errorRequest (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/client.js:2276:13)
    at TLSSocket.onSocketClose (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/client.js:1152:5)
    at TLSSocket.emit (node:events:531:35)
    at node:net:339:12
    at TCP.done (node:_tls_wrap:657:7) {
  [cause]: Error: read ECONNRESET
      at TLSWrap.onStreamRead (node:internal/stream_base_commons:218:20)
      at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
    errno: -104,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}
TypeError: terminated
    at Fetch.onAborted (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/fetch/index.js:1939:49)
    at Fetch.emit (node:events:519:28)
    at Fetch.terminate (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/fetch/index.js:94:10)
    at Object.onError (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/fetch/index.js:2110:34)
    at Request.onError (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/core/request.js:330:27)
    at errorRequest (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/client.js:2276:13)
    at TLSSocket.onSocketClose (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/client.js:1152:5)
    at TLSSocket.emit (node:events:531:35)
    at node:net:339:12
    at TCP.done (node:_tls_wrap:657:7) {
  [cause]: SocketError: other side closed
      at TLSSocket.onSocketEnd (/usr/app/node_modules/youtubei.js/node_modules/undici/lib/client.js:1118:22)
      at TLSSocket.emit (node:events:531:35)
      at endReadableNT (node:internal/streams/readable:1696:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    code: 'UND_ERR_SOCKET',
    socket: {
      localAddress: '172.17.0.3',
      localPort: 40640,
      remoteAddress: undefined,
      remotePort: undefined,
      remoteFamily: undefined,
      timeout: undefined,
      bytesWritten: 1316,
      bytesRead: 3392477
    }
  }
}
LakhindarPal commented 2 weeks ago

Is it happening for SoundCloud songs also or just for youtube (Spotify,apple music) streaming?

sentientyeet commented 2 weeks ago

Is it happening for SoundCloud songs also or just for youtube (Spotify,apple music) streaming?

Bot was being used with youtube songs specifically, no other service was tried.