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

CommentsSimplebox not found! #417

Closed
inad9300 opened this issue Jun 17, 2023 · 0 comments · Fixed by #442
Closed

CommentsSimplebox not found! #417

inad9300 opened this issue Jun 17, 2023 · 0 comments · Fixed by #442
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@inad9300
Copy link

inad9300 commented Jun 17, 2023

CommentsSimplebox not found!
This is a bug, want to help us fix it? Follow the instructions at https://github.com/LuanRT/YouTube.js/blob/main/docs/updating-the-parser.md or report it at https://github.com/LuanRT/YouTube.js/issues!
Introspected and JIT generated this class in the meantime:

class CommentsSimplebox extends YTNode {
  static type = 'CommentsSimplebox';

  simplebox_avatar: Thumbnail[];
  simplebox_placeholder: Text;

  constructor(data: RawNode) {
    super();
    this.simplebox_avatar = Thumbnail.fromResponse(data.simpleboxAvatar);
    this.simplebox_placeholder = new Text(data.simpleboxPlaceholder);
  }
}
InnertubeError: Something went wrong at CommentsSimplebox!
This is a bug, please report it at https://github.com/LuanRT/YouTube.js/issues
    at Parser._Parser_printError (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:392:18)
    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:232:77)
    at new CommentsEntryPointHeader (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/classes/comments/CommentsEntryPointHeader.js:22:44)
    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:227:32)
    at Parser.parseArray (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:242:37)
    at new ItemSection (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/classes/ItemSection.js:11:32)
    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:227:32)
    at Parser.parseArray (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:242:37)
    at new TwoColumnWatchNextResults (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/classes/TwoColumnWatchNextResults.js:14:31)
    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:227:32) {
  info: {
    stack: 'Error: Type mismatch, got CommentsSimplebox but expected CommentsEntryPointTeaser\n' +
      '    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:225:31)\n' +
      '    at new CommentsEntryPointHeader (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/classes/comments/CommentsEntryPointHeader.js:22:44)\n' +
      '    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:227:32)\n' +
      '    at Parser.parseArray (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:242:37)\n' +
      '    at new ItemSection (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/classes/ItemSection.js:11:32)\n' +
      '    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:227:32)\n' +
      '    at Parser.parseArray (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:242:37)\n' +
      '    at new TwoColumnWatchNextResults (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/classes/TwoColumnWatchNextResults.js:14:31)\n' +
      '    at Parser.parseItem (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:227:32)\n' +
      '    at Parser.parse (file:///Users/demo/node_modules/youtubei.js/dist/src/parser/parser.js:271:43)'
  },
  date: 2023-06-17T14:44:35.324Z,
  version: '5.1.0'
}
@inad9300 inad9300 added the bug Something isn't working label Jun 17, 2023
@LuanRT LuanRT added the good first issue Good for newcomers label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants