music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.3k stars 48 forks source link

No playable items found error #2631

Closed nabahr closed 2 weeks ago

nabahr commented 1 month ago

What version of Music Assistant has the issue?

2.1.0rc2

What version of the Home Assistant Integration have you got installed?

2024.7.1b0

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

I created a playlist with a track from Spotify. When I attempt to play the playlist on any speaker I get the following error. mass | 2024-07-15 21:53:18.920 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found This happens on google cast speakers as well as squeezelite speakers. I tried creating the playlist as a music assistant playlist, as well as a spotify playlist from both within Music Assistant and in the spotify app. The playlist still plays even with the error, although on the squeezelite speakers the track is added twice but that might be a separate issue. If I play the same track directly, not via the playlist, there is no error.

How to reproduce

Pick a spotify track (I don't know if it's specifically spotify, but that is the only music source I have) and add it to a new playlist. Play the playlist on the speaker. The error should be in the logs. When playing via a HA service call, the service call returns an error.

Music Providers

Spotify

Player Providers

chromecast slimproto

Full log output

music-assistant.log

Additional information

No response

What version of Home Assistant Core are your running

2024.7.2

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Linux

OzGav commented 1 month ago

Confirmed. This will be looked at in due course

OzGav commented 2 weeks ago

@nabahr Can you check again with the latest version as I can no longer recreate this

OzGav commented 2 weeks ago

Actually I do see this but not with all playlists? Edit: I can only recreate this when the playlist has just one track.

SiboutVanLoo commented 2 weeks ago

I still have the issue using media in automations, but only when playing local media, YTm media is fine, somehow... Playing the same media file thru MA works fine, so i'm puzzeled. Use case: personal announcements in recorded MP3 files, (Dad's voice saying time to sleep, etc.)

Not shure if it's the same problem. Updated, reinstalled,... (But did'nt dare to try the beta.)

error: Fout bij uitvoeren actie MediaNotFoundError: No playable items found

marcelveldt commented 2 weeks ago

fixed in 2.2.0 stable

OzGav commented 2 weeks ago

I no longer see the original issue. Closing.

SiboutVanLoo commented 1 week ago

Goodmorning, i still get the issue when using piper for tts. Same with home assistant cloud. Is it due to metadata not existing? Saw random metadate being added to prerecorded annoucements. And piper generates audio stored locally, but just tags it with "longlistofwhateversymbols". (The "annoucement - advanced" "service, or action" needs a pinpoint sound file, but my piper automation setup uses variables, for example, weather forecast.)

MAserverV:2.2.2 HAintV:2024.8.1

LOG:

2024-08-24 07:41:29.884 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found 2024-08-24 07:43:21.695 WARNING (Thread-6) [music_assistant.chromecast] Load media failed: 1 - error code: 104 2024-08-24 07:43:38.264 WARNING (MainThread) [music_assistant.player_queues] Skipping https://XXX.XXX.XX.XX:8123/api/tts_proxy/6f04e81099ff7b6ed73a933f6ffce10f4c264465_nl-be_e88daa58ee_tts.piper.mp3: 2024-08-24 07:43:38.264 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found 2024-08-24 07:44:05.920 WARNING (MainThread) [music_assistant.player_queues] Skipping https://XXX.XXX.XX.XX:8123/api/tts_proxy/6f04e81099ff7b6ed73a933f6ffce10f4c264465_nl-be_7280e96d39_tts.home_assistant_cloud.mp3: 2024-08-24 07:44:05.921 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found 2024-08-24 07:44:27.681 WARNING (MainThread) [music_assistant.player_queues] Skipping https://XXX.XXX.XX.XX:8123/api/tts_proxy/6f04e81099ff7b6ed73a933f6ffce10f4c264465_nl-be_e88daa58ee_tts.piper.mp3: 2024-08-24 07:44:27.681 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found 2024-08-24 07:44:41.720 WARNING (MainThread) [music_assistant.player_queues] Skipping https://XXX.XXX.XX.XX:8123/api/tts_proxy/6f04e81099ff7b6ed73a933f6ffce10f4c264465_nl-be_e88daa58ee_tts.piper.mp3: 2024-08-24 07:44:41.720 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found

OzGav commented 1 week ago

@SiboutVanLoo you are posting about something different. The original post is about playlists. If you have an issue with playing announcements then open a new issue