Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.5.0 [YOUTUBEJS][Parser]: InnertubeError: Something went wrong at DescriptionPreviewView! #781

Open
4 tasks done
iBicha opened this issue Oct 14, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@iBicha
Copy link
Contributor

iBicha commented Oct 14, 2024

Steps to reproduce

npx yt2alt
Happens when reading playlists

Failure Logs

[YOUTUBEJS][Parser]: InnertubeError: Something went wrong at DescriptionPreviewView!
This is a bug, please report it at https://github.com/LuanRT/YouTube.js/issues
    at ERROR_HANDLER (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:48:31)
    at Module.parseItem (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:412:13)
    at new PageHeaderView (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/classes/PageHeaderView.js:18:35)
    at Module.parseItem (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:407:28)
    at new PageHeader (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/classes/PageHeader.js:8:31)
    at parseItem (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:407:28)
    at parse (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:456:34)
    at Module.parseResponse (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:194:34)
    at new Feed (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/core/mixins/Feed.js:40:61)
    at new Playlist (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/youtube/Playlist.js:22:9) {
  info: {
    stack: "TypeError: Cannot destructure property 'content' of 'data' as it is undefined.\n" +
      '    at Text.fromAttributed (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/classes/misc/Text.js:40:17)\n' +
      '    at new DescriptionPreviewView (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/classes/DescriptionPreviewView.js:8:33)\n' +
      '    at Module.parseItem (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:407:28)\n' +
      '    at new PageHeaderView (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/classes/PageHeaderView.js:18:35)\n' +
      '    at Module.parseItem (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:407:28)\n' +
      '    at new PageHeader (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/classes/PageHeader.js:8:31)\n' +
      '    at parseItem (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:407:28)\n' +
      '    at parse (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:456:34)\n' +
      '    at Module.parseResponse (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/parser/parser.js:194:34)\n' +
      '    at new Feed (file:///Users/brahim/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/core/mixins/Feed.js:40:61)',
    classdata: '{\n' +
      '  "truncationText": {\n' +
      '    "content": "...more",\n' +
      '    "styleRuns": [\n' +
      '      {\n' +
      '        "startIndex": 0,\n' +
      '        "length": 7,\n' +
      '        "weight": 500\n' +
      '      }\n' +
      '    ]\n' +
      '  },\n' +
      '  "rendererContext": {\n' +
      '    "loggingContext": {\n' +
      '      "loggingDirectives": {\n' +
      '        "trackingParams": "CCwQr_4KIhMIvcfhjJuOiQMVurDlBx3GHzkr",\n' +
      '        "visibility": {\n' +
      '          "types": "12"\n' +
      '        },\n' +
      '        "clientVeSpec": {\n' +
      '          "uiType": 180015,\n' +
      '          "veCounter": 97401837\n' +
      '        }\n' +
      '      }\n' +
      '    }\n' +
      '  }\n' +
      '}'
  },
  date: 2024-10-14T15:43:09.779Z,
  version: '10.5.0'
}

Expected behavior

No error at DescriptionPreviewView

Current behavior

Error at DescriptionPreviewView

Version

Default

Anything else?

From the log's classdata It looks like DescriptionPreviewView doesn't always have the fields description or maxLines

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@iBicha iBicha added the bug Something isn't working label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant