Repository: music-assistant/support

Issue #3241: mass.play_media action fails when radio_mode:true with Spotify
Created: 2024-11-28T18:30:33Z
What version of Music Assistant has the issue?
2.3.3
What version of the Home Assistant Integration have you got installed?
2024.11.4
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

 Yes

The problem
When using the action "mass.play_media" in a Home Assistant automation or script, the action fails with error "Error: recommendations not found", only when the "radio_mode" parameter is set to "true". When it is changed to "false", the action works as expected. No difference in behavior for grouped/ungrouped players. This was working without issue in my automations since before 2024.11.4.
Radio mode seems to be enabled by default in the web player (I couldn't find a way to turn it on/off) and works as expected.
How to reproduce
Create a Home Assistant automation that uses the mass.play_media action with radio mode enabled. Run the automation. Observe the "Error: recommendations not found" error.
Music Providers
Spotify
I have no other providers
Player Providers
Google Nest Mini, Google Nest Hub, Samsung TV
Issue occurs on all players
Full log output
music-assistant.log
Additional information
Have tried rebooting HA as well as reloading MASS, re-registering Spotify, etc.
What version of Home Assistant Core are your running
2024.11.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Linux

Duplicate issue #3255: Can't start a radio: Recommendations 
Created: 2024-12-03T16:39:44Z
What version of Music Assistant has the issue?
2.3.3
What version of the Home Assistant Integration have you got installed?
2024.11.4
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

 Yes

The problem
Description
Starting a radio mode via Music Assistant fails with a MediaNotFoundError related to Spotify recommendations.
The issue persists across multiple attempts and playlists, making the feature unusable. Interestingly, this functionality was working previously but has suddenly stopped without any apparent changes.
How to reproduce
Steps to Reproduce

Attempt to start a radio mode for any playlist via the Music Assistant webserver.
Observe that the radio mode fails, producing the error logs below.


Observed Behavior

The radio mode fails to start.
Errors related to MediaNotFoundError appear in the logs, suggesting issues with fetching recommendations from Spotify.


Music Providers

Two Spotify accounts are configured: one disabled (used with Music Assistant app) and one active (used with own Spotify app).

Player Providers
Chromecast audio.
Full log output
refined_filtered_music_assistant_log.txt
If these logs are unusable please let me know!
Additional information
No response
What version of Home Assistant Core are your running
2024.11.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

Closing comment (2024-12-03T19:06:00Z): The issue might be the same as #3241, but in this case, I’m using both the Mass web player and Home Assistant. Neither can start the radio.