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.32k stars 49 forks source link

Spotify [Premium account] Login failed for user [myusername] #2702

Closed tomoqv closed 2 months ago

tomoqv commented 2 months ago

What version of Music Assistant has the issue?

2.1.0

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

2024.6.2

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

The problem

I am trying to login to my Spotify Premium account, but getting the error "Login for user [myusername] or [myemail]". I am using Volumio, which has a Spotify integration working, from HA and I can access the music from there.

I just installed Music Assistant for the first time and it works with my mp3 collection on a network server.

How to reproduce

Go to Settings Click on "Add Music Provider" Select "Spotify" Input Spotify credentials Click "Save"

Music Providers

Spotify

Player Providers

Only one provider added, Volumio (from HA players)

Full log output

MA log file.txt

Additional information

No response

What version of Home Assistant Core are your running

2024.7.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

jojkopeter commented 2 months ago

I have the same problem

QuatoPro commented 2 months ago

i have the same problem

LioBoul commented 2 months ago

The same

erkr commented 2 months ago

Thanks for reporting the issue. Marcel is looking into it. Not clear yet what is the issue (e.g. some outage, policy change or api change at Spotify).

Issue at Librespot: https://github.com/librespot-org/librespot/issues/1308

Someguitarist commented 2 months ago

Just mentioning I'm having the same issue. Thanks for looking into it.

NylonDiamond commented 2 months ago

same

OzGav commented 2 months ago

Thanks everyone. No need for anymore +1s. This is an upstream issue and we will have to wait and see.

Someguitarist commented 2 months ago

Hey @OzGav, do you know if there's any kind of rough timeframe for a fix from Spotify? Or why Spotify still works through Home Assistant directly but not through Music Assistant?

I just got Music Assistant set up but unfortunately only use Spotify, so now I can't do anything with it. Hoping to salvage the 'Wife Acceptance Factor' soon!

Thanks for all your hard work!

erkr commented 2 months ago

That fully depends on the team that own the library librespot (used by us and many others). I see a lot of activity there, including new code to fix it

Someguitarist commented 2 months ago

Edit: Actually, I just tried to re-add it and it looks like it's syncing! Might be resolved, or if not yet, hopefully soon!

OzGav commented 2 months ago

Yes looks like it is working again. Full disclosure we have done nothing something upstream must have changed again. Will monitor for a bit longer and then close this.

FYI in 2.2.0b2 and later there is an option to add your own clientid which may speed access up to the API. This is OPTIONAL but you can get your own clientid by following the steps here https://developer.spotify.com/documentation/web-api/concepts/apps

erkr commented 2 months ago

Upstream I read the assumption Spotify did a roll back.

tomoqv commented 2 months ago

I can confirm it works now.

LioBoul commented 2 months ago

Me too! 🙂