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
141 stars 27 forks source link

Crash #152

Closed Shtifan closed 2 months ago

Shtifan commented 2 months ago

Describe the bug

PS C:\Users\sstoy\Documents\Programing\Projects\Debeliq> node "c:\Users\sstoy\Documents\Programing\Projects\Debeliq\index.js"
Ready on 4 servers!
[YOUTUBEJS][Parser]: InnertubeError: Something went wrong at ThumbnailBadgeView!
This is a bug, please report it at https://github.com/LuanRT/YouTube.js/issues
    at ERROR_HANDLER (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:13215:32)
    at parseItem (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:13575:7)
    at Object.parseArray (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:13591:22)
    at new ThumbnailOverlayBadgeView (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:4688:34)
    at parseItem (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:13571:22)
    at Object.parseArray (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:13591:22)
    at new Video (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:3747:46)
    at parseItem (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:13571:22)
    at Object.parseArray (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:13591:22)
    at new ItemSection (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\bundle\node.cjs:8296:36) {
  info: {
    stack: "TypeError: Cannot read properties of undefined (reading 'sources')\n" +
      '    at new ThumbnailBadgeView (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:4669:32)\n' +
      '    at parseItem (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:13571:22)\n' +
      '    at Object.parseArray (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:13591:22)\n' +
      '    at new ThumbnailOverlayBadgeView (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:4688:34)\n' +
      '    at parseItem (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:13571:22)\n' +
      '    at Object.parseArray (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:13591:22)\n' +
      '    at new Video (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:3747:46)\n' + 
      '    at parseItem (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:13571:22)\n' +
      '    at Object.parseArray (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:13591:22)\n' +
      '    at new ItemSection (c:\\Users\\sstoy\\Documents\\Programing\\Projects\\Debeliq\\node_modules\\youtubei.js\\bundle\\node.cjs:8296:36)',
    classdata: '{\n' +
      '  "text": "New",\n' +
      '  "badgeStyle": "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL"\n' +
      '}'
  },
  date: 2024-09-08T16:40:23.544Z,
  version: '10.4.0'
}
c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\node_modules\undici\lib\fetch\index.js:1939
        fetchParams.controller.controller.error(new TypeError('terminated', {
                                                ^

TypeError: terminated
    at Fetch.onAborted (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\node_modules\undici\lib\fetch\index.js:1939:49)
    at Fetch.emit (node:events:519:28)
    at Fetch.terminate (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\node_modules\undici\lib\fetch\index.js:94:10)
    at Object.onError (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\node_modules\undici\lib\fetch\index.js:2110:34)
    at Request.onError (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\node_modules\undici\lib\core\request.js:330:27)
    at errorRequest (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\node_modules\youtubei.js\node_modules\undici\lib\client.js:2276:13)  
    at TLSSocket.onSocketClose (c:\Users\sstoy\Documents\Programing\Projects\Debeliq\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: -4077,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}

Node.js v20.17.0

To Reproduce The bot crashes after some time of playing music.

Expected behavior The bot should not crash.