muse: Missing catch or finally after try (ytdl-core bug)

What’s happening? Error on /play

Logs

Unable to find image 'codetheweb/muse:2.2.3' locally
2.2.3: Pulling from codetheweb/muse
7a6db449b51b: Already exists
065fda631bff: Already exists
b588f0d753f3: Already exists
3d842af32ff7: Already exists
caed8fd3d9eb: Already exists
2f8b6a5849d5: Pull complete
dac97c48aa97: Pull complete
63509805cb92: Pull complete
7905ca4a9146: Pull complete
5d4a77028dff: Pull complete
Digest: sha256:12563fcd61b2fb12602b2fa47c90e67a48c2b64b0ca7dc5e973475a3054792eb
Status: Downloaded newer image for codetheweb/muse:2.2.3
yarn run v1.22.19
$ npm run env:set-database-url -- tsx src/scripts/migrate-and-start.ts

> muse@2.2.3 env:set-database-url
> tsx src/scripts/run-with-database-url.ts

========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================

Running version 2.2.3 built on 4/5/2023 (commit 640ec2b13f3d19e64800b102a8295effc485c709)

🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb


✔ Database migrations applied.
✔ Ready! Invite the bot with https://discordapp.com/oauth2/authorize?client_id=891408757001687051&scope=bot%20applications.commands&permissions=36700160
/usr/app/node_modules/ytsr/lib/parseItem.js:357
    .reelPlayerOverlayRenderer.reelPlayerHeaderSupportedRenderers.reelPlayerHeaderRenderer;
                                                                  ^

TypeError: Cannot read properties of undefined (reading 'reelPlayerHeaderRenderer')
    at parseShort (/usr/app/node_modules/ytsr/lib/parseItem.js:357:67)
    at parseItem (/usr/app/node_modules/ytsr/lib/parseItem.js:28:14)
    at <anonymous> (/usr/app/node_modules/ytsr/lib/parseItem.js:411:30)
    at Array.map (<anonymous>)
    at parseShelf (/usr/app/node_modules/ytsr/lib/parseItem.js:411:21)
    at parseItem (/usr/app/node_modules/ytsr/lib/parseItem.js:32:14)
    at catchAndLogFunc (/usr/app/node_modules/ytsr/lib/parseItem.js:90:12)
    at module.exports (/usr/app/node_modules/ytsr/lib/parseItem.js:113:46)
    at <anonymous> (/usr/app/node_modules/ytsr/lib/main.js:95:41)
    at Array.map (<anonymous>)

/********************************************************************************************************************************************************************************************************
failed at func parseItem: Cannot read properties of undefined (reading 'reelPlayerHeaderRenderer')
pls post the the files in /usr/app/node_modules/ytsr/dumps to https://github.com/TimeForANinja/node-ytsr/issues
os: linux-x64, node.js: v18.7.0, ytsr: 3.8.1
********************************************************************************************************************************************************************************************************\
WARNING: ytdl-core is out of date! Update with "npm install ytdl-core@latest".

Screenshots image

Additional context

Runtime I’m running Muse:

  • Directly from the cloned repository
  • Inside a Docker container
  • Something else (please elaborate)

Versions

  • Muse: 2.2.3
  • Docker (if applicable): Docker version 20.10.21, build 20.10.21-0ubuntu1~20.04.1
  • OS: Ubuntu 20.04.6 LTS
  • Node.js: (if running outside the Docker container)
  • ffmpeg: (if running outside the Docker container, 4.1 or later is required)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 6
  • Comments: 22 (2 by maintainers)

Most upvoted comments

Please be careful with all these forks / docker images.

temporary workaround: https://hub.docker.com/r/redr00t/muse

Works very well with downgraded ytdl-core

temporary workaround: https://hub.docker.com/r/redr00t/muse Works very well with downgraded ytdl-core

+1 - Spun up a Docker machine on Vultr and pulled and worked immediately.

docker run -it -v “$(pwd)/data”:/data -e DISCORD_TOKEN=‘APIKEY’ -e SPOTIFY_CLIENT_ID=‘APIKEY’ -e SPOTIFY_CLIENT_SECRET=‘APIKEY’ -e YOUTUBE_API_KEY=‘APIKEY’ docker.io/redr00t/muse:latest

temporary workaround: https://hub.docker.com/r/redr00t/muse Works very well with downgraded ytdl-core

Thanks! This one works for the time being. My fellow gamers on my discord and me are a happy bunch! 😃

This bot is the best ever made! (you got my gratitude for the hard work you put into it @codetheweb)

I’m glad it worked for you guys!! I just uploaded an updated and stable image to fix some annoying bugs on the console. Fork: https://github.com/redr00t/muse-experimental Docker: https://hub.docker.com/r/redr00t/muse

Fixed in v2.2.4.

Please be careful with all these forks / docker images.

the source is public