muse: 🚫 ope: filterWrapper is not iterable
What’s happening? Concisely describe what’s going wrong.
Logs
logs seems to be not found on console
Additional context
This error occurs randomly while using /play
Confirmed that this is not a user error seems to be the server side.
Runtime I’m running Muse:
- Directly from the cloned repository
- Inside a Docker container
- Something else (please elaborate)
Versions
- Muse: 2.3.0
- Docker (if applicable):
- OS: Ubuntu v20.04
- Node.js: v16.20.0
- ffmpeg: 4.2.7-0ubuntu0.1
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 25 (5 by maintainers)
this issue used to be sporadic, but after a while of running the bot, it occurs on literally every play command (no matter if the input is a search query, spotify or youtube url), rendering the bot entirely unusuable. I would suggest that node-ytsr is forked. in the meantime, I applied the ytsr fix in my docker-compose setup like so in order to avoid building my own image:
As per this this github issue, to fix all you have to do is edit
node_modules\ytsr\lib\utils.js. Change line21as followsbefore
const filterWrapper = (wrapper.subMenu || wrapper.submenu).searchSubMenuRenderer.groups;after
const filterWrapper = (wrapper.subMenu || wrapper.submenu).searchSubMenuRenderer.groups || [];sed -i ‘s/of filterWrapper[)]/of filterWrapper|| [])/g’ /node_modules/ytsr/lib/utils.js