Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
RainOrigami opened this issue Aug 11, 2023 · 17 comments
Open
1 task done

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

RainOrigami opened this issue Aug 11, 2023 · 17 comments
Labels

Comments

@RainOrigami
Copy link

RainOrigami commented Aug 11, 2023

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:

  • Directly from the cloned repository

Versions

  • Muse: 2.4.1
  • OS: Linux 5.15.0-72-generic Ubuntu 22.04.2 LTS
  • Node.js: v16.20.0
  • ffmpeg: 4.4.2-0ubuntu0.22.04.1
@MathiasDevelopes
Copy link

Having the same error.

@codetheweb
Copy link
Collaborator

I think this is related to #948.

Please upgrade and see if it's fixed.

@RainOrigami
Copy link
Author

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
Copy link

mateus0099 commented Sep 3, 2023

+1 ;'C

@ahatdude
Copy link

Still having this problem too.

@Rotekoppen
Copy link

It worked once, then stopped here...

@ghost
Copy link

ghost commented Oct 3, 2023

Same issue here on debian with muse version 2.4.3

@DeadlyVirez
Copy link

Yep also still having the same issue with 2.4.3

@Revq
Copy link

Revq commented Oct 19, 2023

Ubuntu 22.04 LTS with 2.4.3 issue persists

@SkipTam
Copy link

SkipTam commented Dec 8, 2023

I have the same issue

@narendnp
Copy link

narendnp commented Jan 11, 2024

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
Copy link

teheim commented Jan 25, 2024

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

@ghost
Copy link

ghost commented Jan 29, 2024

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

I installed the docker version and it went away

@RainOrigami
Copy link
Author

RainOrigami commented Jan 29, 2024

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
Copy link

filip2cz commented Feb 3, 2024

same issue here

@codetheweb
Copy link
Collaborator

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

@ryleu
Copy link

ryleu commented Jul 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests