museofficial / muse

🎧 a self-hosted midwestern Discord music bot that doesn't suck
MIT License
863 stars 224 forks source link

No spotify songs can be played, 🚫 ope: no songs found #958

Open RainOrigami opened 1 year ago

RainOrigami commented 1 year ago

What's happening?

Since a couple of weeks ago, the bot started to refuse to play any spotify songs or playlists. Single youtube songs work. The reply is always "🚫 ope: no songs found" with an error in console. I've received these console errors before and they have never been a problem, I don't know if they are related. Just to be safe I've also attached one of the files from the dumps dir.

I've completely removed the folder and re-cloned the repo, regenerated the api keys, nothing has helped.

Command used: /play https://open.spotify.com/playlist/17JJ2oOKjsfxa5G82Ikk3m?si=92844e60378e4e7d

Logs

Aug 11 18:31:07 host bash[1996563]: /********************************************************************************************************************************************************************************************************
Aug 11 18:31:07 host bash[1996563]: failed at func parseItem: Cannot read properties of undefined (reading 'browseEndpoint')
Aug 11 18:31:07 host bash[1996563]: pls post the the files in /home/rain/src/muse/node_modules/ytsr/dumps to https://github.com/TimeForANinja/node-ytsr/issues
Aug 11 18:31:07 host bash[1996563]: os: linux-x64, node.js: v16.20.0, ytsr: 3.8.2
Aug 11 18:31:07 host bash[1996563]: ********************************************************************************************************************************************************************************************************\
Aug 11 18:31:08 host bash[1996563]: /home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:431
Aug 11 18:31:08 host bash[1996563]:   const ownerUrl = owner.navigationEndpoint.browseEndpoint.canonicalBaseUrl ||
Aug 11 18:31:08 host bash[1996563]:                                             ^
Aug 11 18:31:08 host bash[1996563]: TypeError: Cannot read properties of undefined (reading 'browseEndpoint')
Aug 11 18:31:08 host bash[1996563]:     at _parseOwner (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:431:45)
Aug 11 18:31:08 host bash[1996563]:     at parseMovie (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:346:12)
Aug 11 18:31:08 host bash[1996563]:     at parseItem (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:26:14)
Aug 11 18:31:08 host bash[1996563]:     at catchAndLogFunc (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:90:12)
Aug 11 18:31:08 host bash[1996563]:     at module.exports (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:113:46)
Aug 11 18:31:08 host bash[1996563]:     at <anonymous> (/home/rain/src/muse/node_modules/ytsr/lib/main.js:53:34)
Aug 11 18:31:08 host bash[1996563]:     at Array.map (<anonymous>)
Aug 11 18:31:08 host bash[1996563]:     at module.exports (/home/rain/src/muse/node_modules/ytsr/lib/main.js:53:25)
Aug 11 18:31:08 host bash[1996563]:     at runMicrotasks (<anonymous>)
Aug 11 18:31:08 host bash[1996563]:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
Aug 11 18:31:08 host bash[1996563]: /********************************************************************************************************************************************************************************************************
Aug 11 18:31:08 host bash[1996563]: failed at func parseItem: Cannot read properties of undefined (reading 'browseEndpoint')
Aug 11 18:31:08 host bash[1996563]: pls post the the files in /home/rain/src/muse/node_modules/ytsr/dumps to https://github.com/TimeForANinja/node-ytsr/issues
Aug 11 18:31:08 host bash[1996563]: os: linux-x64, node.js: v16.20.0, ytsr: 3.8.2
Aug 11 18:31:08 host bash[1996563]: ********************************************************************************************************************************************************************************************************\
Aug 11 18:31:13 host bash[1996563]: /home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:431
Aug 11 18:31:13 host bash[1996563]:   const ownerUrl = owner.navigationEndpoint.browseEndpoint.canonicalBaseUrl ||
Aug 11 18:31:13 host bash[1996563]:                                             ^
Aug 11 18:31:13 host bash[1996563]: TypeError: Cannot read properties of undefined (reading 'browseEndpoint')
Aug 11 18:31:13 host bash[1996563]:     at _parseOwner (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:431:45)
Aug 11 18:31:13 host bash[1996563]:     at parseMovie (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:346:12)
Aug 11 18:31:13 host bash[1996563]:     at parseItem (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:26:14)
Aug 11 18:31:13 host bash[1996563]:     at catchAndLogFunc (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:90:12)
Aug 11 18:31:13 host bash[1996563]:     at module.exports (/home/rain/src/muse/node_modules/ytsr/lib/parseItem.js:113:46)
Aug 11 18:31:13 host bash[1996563]:     at <anonymous> (/home/rain/src/muse/node_modules/ytsr/lib/main.js:53:34)
Aug 11 18:31:13 host bash[1996563]:     at Array.map (<anonymous>)
Aug 11 18:31:13 host bash[1996563]:     at module.exports (/home/rain/src/muse/node_modules/ytsr/lib/main.js:53:25)
Aug 11 18:31:13 host bash[1996563]:     at runMicrotasks (<anonymous>)
Aug 11 18:31:13 host bash[1996563]:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
Aug 11 18:31:13 host bash[1996563]: /********************************************************************************************************************************************************************************************************
Aug 11 18:31:13 host bash[1996563]: failed at func parseItem: Cannot read properties of undefined (reading 'browseEndpoint')
Aug 11 18:31:13 host bash[1996563]: pls post the the files in /home/rain/src/muse/node_modules/ytsr/dumps to https://github.com/TimeForANinja/node-ytsr/issues
Aug 11 18:31:13 host bash[1996563]: os: linux-x64, node.js: v16.20.0, ytsr: 3.8.2
Aug 11 18:31:13 host bash[1996563]: ********************************************************************************************************************************************************************************************************\

Additional context Add any other context about the problem here.

Runtime I'm running Muse:

Versions

MathiasDevelopes commented 1 year ago

Having the same error.

codetheweb commented 1 year ago

I think this is related to https://github.com/codetheweb/muse/issues/948.

Please upgrade and see if it's fixed.

RainOrigami commented 1 year ago

Tested with Muse 2.4.2 and I am still getting image And

Sep 01 15:33:12 myhost bash[3635696]: ✔ Ready! Invite the bot with https://discordapp.com/oauth2/...
Sep 01 15:33:45 myhost bash[3635696]: /home/myuser/src/muse/node_modules/ytsr/lib/parseItem.js:431
Sep 01 15:33:45 myhost bash[3635696]:   const ownerUrl = owner.navigationEndpoint.browseEndpoint.canonicalBaseUrl ||
Sep 01 15:33:45 myhost bash[3635696]:                                             ^
Sep 01 15:33:45 myhost bash[3635696]: TypeError: Cannot read properties of undefined (reading 'browseEndpoint')
Sep 01 15:33:45 myhost bash[3635696]:     at _parseOwner (/home/myuser/src/muse/node_modules/ytsr/lib/parseItem.js:431:45)
Sep 01 15:33:45 myhost bash[3635696]:     at parseMovie (/home/myuser/src/muse/node_modules/ytsr/lib/parseItem.js:346:12)
Sep 01 15:33:45 myhost bash[3635696]:     at parseItem (/home/myuser/src/muse/node_modules/ytsr/lib/parseItem.js:26:14)
Sep 01 15:33:45 myhost bash[3635696]:     at catchAndLogFunc (/home/myuser/src/muse/node_modules/ytsr/lib/parseItem.js:90:12)
Sep 01 15:33:45 myhost bash[3635696]:     at module.exports (/home/myuser/src/muse/node_modules/ytsr/lib/parseItem.js:113:46)
Sep 01 15:33:45 myhost bash[3635696]:     at <anonymous> (/home/myuser/src/muse/node_modules/ytsr/lib/main.js:53:34)
Sep 01 15:33:45 myhost bash[3635696]:     at Array.map (<anonymous>)
Sep 01 15:33:45 myhost bash[3635696]:     at module.exports (/home/myuser/src/muse/node_modules/ytsr/lib/main.js:53:25)
Sep 01 15:33:45 myhost bash[3635696]:     at runMicrotasks (<anonymous>)
Sep 01 15:33:45 myhost bash[3635696]:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
Sep 01 15:33:45 myhost bash[3635696]: /********************************************************************************************************************************************************************************************************
Sep 01 15:33:45 myhost bash[3635696]: failed at func parseItem: Cannot read properties of undefined (reading 'browseEndpoint')
Sep 01 15:33:45 myhost bash[3635696]: pls post the the files in /home/myuser/src/muse/node_modules/ytsr/dumps to https://github.com/TimeForANinja/node-ytsr/issues
Sep 01 15:33:45 myhost bash[3635696]: os: linux-x64, node.js: v16.20.0, ytsr: 3.8.2
Sep 01 15:33:45 myhost bash[3635696]: ********************************************************************************************************************************************************************************************************\

Tested with Spotify playlist https://open.spotify.com/playlist/17JJ2oOKjsfxa5G82Ikk3m?si=4cfcd0344c914a56

mateus0099 commented 1 year ago

+1 ;'C

ahatdude commented 1 year ago

Still having this problem too.

Rotekoppen commented 1 year ago

It worked once, then stopped here...

ghost commented 11 months ago

Same issue here on debian with muse version 2.4.3

DeadlyVirez commented 11 months ago

Yep also still having the same issue with 2.4.3

Revq commented 11 months ago

Ubuntu 22.04 LTS with 2.4.3 issue persists

SkipTam commented 9 months ago

I have the same issue

narendnp commented 8 months ago

I also have the same issue. Ubuntu 22.04 running version 2.4.4.

Slightly unrelated but youtube playback also doesn't work (same issue with #985).

teheim commented 7 months ago

anyone managed to get this fixed? having the same issue right now

ghost commented 7 months ago

anyone managed to get this fixed? having the same issue right now

I installed the docker version and it went away

RainOrigami commented 7 months ago

I installed the docker version and it went away

can not confirm, used the docker run -it -v "$(pwd)/data":/data -e DISCORD_TOKEN='' -e SPOTIFY_CLIENT_ID='' -e SPOTIFY_CLIENT_SECRET='' -e YOUTUBE_API_KEY='' codetheweb/muse:latest command from the README.md and tried to play my playlist and still got the error "🚫 ope: no songs found" with the following log:

/usr/app/node_modules/ytsr/lib/parseItem.js:431
  const ownerUrl = owner.navigationEndpoint.browseEndpoint.canonicalBaseUrl ||
                                            ^

TypeError: Cannot read properties of undefined (reading 'browseEndpoint')
    at _parseOwner (/usr/app/node_modules/ytsr/lib/parseItem.js:431:45)
    at parseMovie (/usr/app/node_modules/ytsr/lib/parseItem.js:346:12)
    at parseItem (/usr/app/node_modules/ytsr/lib/parseItem.js:26: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:53:34)
    at Array.map (<anonymous>)
    at module.exports (/usr/app/node_modules/ytsr/lib/main.js:53:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at KeyValueCacheProvider.wrap (/usr/app/src/services/key-value-cache.ts:53:20)

/********************************************************************************************************************************************************************************************************
failed at func parseItem: Cannot read properties of undefined (reading 'browseEndpoint')
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.2
********************************************************************************************************************************************************************************************************\
/usr/app/node_modules/ytsr/lib/parseItem.js:431
  const ownerUrl = owner.navigationEndpoint.browseEndpoint.canonicalBaseUrl ||
                                            ^

TypeError: Cannot read properties of undefined (reading 'browseEndpoint')
    at _parseOwner (/usr/app/node_modules/ytsr/lib/parseItem.js:431:45)
    at parseMovie (/usr/app/node_modules/ytsr/lib/parseItem.js:346:12)
    at parseItem (/usr/app/node_modules/ytsr/lib/parseItem.js:26: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:53:34)
    at Array.map (<anonymous>)
    at module.exports (/usr/app/node_modules/ytsr/lib/main.js:53:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at KeyValueCacheProvider.wrap (/usr/app/src/services/key-value-cache.ts:53:20)

/********************************************************************************************************************************************************************************************************
failed at func parseItem: Cannot read properties of undefined (reading 'browseEndpoint')
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.2
********************************************************************************************************************************************************************************************************
filip2cz commented 7 months ago

same issue here

codetheweb commented 2 months ago

does this still happen on the latest version? we bumped a few dependencies

ryleu commented 1 month ago

I had this issue until I also added a YouTube API key. As soon as I added that and restarted the bot it worked fine.