You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, when my users are searching using the query system, they encounter the error "InnertubeError: Something went wrong at Button!" I haven't noticed a pattern, but my parameters are as follows:
InnertubeError: Something went wrong at Button!
This is a bug, please report it at https://github.com/LuanRT/YouTube.js/issues
at Parser._Parser_printError (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:401:18)
at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:239:77)
at new BackstagePost (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/BackstagePost.js:31:39)
at new Post (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/Post.js:4:9)
at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:234:32)
at Parser.parseArray (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:249:37)
at new HorizontalList (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/HorizontalList.js:7:29)
at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:234:32)
at new Shelf (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/Shelf.js:13:31)
at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:234:32) {
info: {
stack: 'Error: Type mismatch, got Button but expected CommentActionButtons\n' +
' at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:232:31)\n' +
' at new BackstagePost (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/BackstagePost.js:31:39)\n' +
' at new Post (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/Post.js:4:9)\n' +
' at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:234:32)\n' +
' at Parser.parseArray (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:249:37)\n' +
' at new HorizontalList (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/HorizontalList.js:7:29)\n' +
' at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:234:32)\n' +
' at new Shelf (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/classes/Shelf.js:13:31)\n' +
' at Parser.parseItem (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:234:32)\n' +
' at Parser.parseArray (file:///home/ubuntu/project/node_modules/youtubei.js/dist/src/parser/parser.js:249:37)'
},
date: 2023-08-22T23:24:38.603Z,
version: '5.8.0'
}
Expected behavior
No error.
Current behavior
Sometimes this error occurs:
InnertubeError: Something went wrong at Button!
It doesn't happen in every search, but it occurs quite frequently.
Version
Default
Anything else?
No response
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.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Sometimes, when my users are searching using the query system, they encounter the error "InnertubeError: Something went wrong at Button!" I haven't noticed a pattern, but my parameters are as follows:
const youtube = await Innertube.create({
lang: "pt-BR",
location: "BR",
cookie: process.env.COOKIES,
generate_session_locally: true
});
...
const filters = {
sort_by: "relevance"
};
const searchResult = await youtube.search(queryYT.toLowerCase(), filters);
Failure Logs
Expected behavior
No error.
Current behavior
Sometimes this error occurs:
InnertubeError: Something went wrong at Button!
It doesn't happen in every search, but it occurs quite frequently.
Version
Default
Anything else?
No response
Checklist
The text was updated successfully, but these errors were encountered: