node-ytsr icon indicating copy to clipboard operation
node-ytsr copied to clipboard

TypeError: filterWrapper is not iterable

Open abaza738 opened this issue 2 years ago • 9 comments

Error

/<project_dir>/node_modules/ytsr/lib/utils.js:23
  for (const filterGroup of filterWrapper) {
                            ^

TypeError: filterWrapper is not iterable
    at Object.exports.parseFilters (/<project_dir>/node_modules/ytsr/lib/utils.js:23:29)
    at module.exports (/<project_dir>/node_modules/ytsr/lib/main.js:60:24)
    at runMicrotasks (<anonymous>)
    ...

Details

For some reason, the value of searchSubMenuRenderer is sometimes returned as this:

{
  "trackingParams": "CDIQkXUiEwjSt4yGr4T9AhU2O_EFHQmlCT8="
}

Hence filterWrapper is undefined.

abaza738 avatar Feb 07 '23 21:02 abaza738