Cannot setup spotify integration

So as the title says the Spotify integration is not working for me,

I completed the steps as shown in the how-to, but it just gives me a blank card that says spotify.

The error from the logs is:


Logger: homeassistant.helpers.config_entry_oauth2_flow

Source: helpers/config_entry_oauth2_flow.py:319

First occurred: 1:37:50 PM (1 occurrences)

Last logged: 1:37:50 PM

Timeout resolving OAuth token:

Any idea?

Did you ever get this sorted? I’m getting the exact same issue. A blank box after I enter credentials and click “link account”.

Can’t seem to find any help anywhere online for this specific issue.

Not sure if its the same issue I had but I managed to fix it by deleting the Spotify integration that had no entities then restarted HA and added it again and this time it worked for me and the Spotify media player entity was created correctly.

My issue is I don’t even get as far as the integration being added, so there’s nothing I can delete.

Have you followed all the steps and created an app on the Spotify Developer Dashboard?
Also I found that you need to get the redirect URIs correct otherwise it doesn’t work.

I have the following entered for the Redirect URIs on Spotify:

https://my.home-assistant.io/redirect/oauth
http://{my internal IP address of HA}:8123/auth/external/callback
1 Like

Yes got both of them in the Redirect URIs.

This is what I get after clicking “Link Account”…

Another thing to check is that the My Home Assistant link is correctly setup with the internal link to your HA. Use the URL below and it should open up a page with the link to your HA instance. If it is incorrect, fix it up and then try again.

https://my.home-assistant.io/

You mean at this step?..

That’s the one.
Make sure the link is one that will open HA.
Mine is set to my internal HA IP address and port number:

http://{my internal IP address of HA}:8123
1 Like

Yes I’ve tried the internal IP as well as homeassistant.local:8123, as well as my domain name that I’ve set up to allow remote access to my HA, and all of them allow me to get to the next step but it’s when I click “link account” it just spins saying “Loading next step for Spotify” for a minute, then it goes blank.

I’ve checked the Logs and I’m getting “Timeout resolving OAuth token”

Hmmm…looks like you are not alone with this issue and no one seems to have found a solution yet :frowning:

I believe I figured it out. At least it worked for me. I was using google chrome, getting the “Timeout resolving OAuth token” error in HA. I then opened up Microsoft edge and went to spotify.com and logged in. I then went back to google chrome and opened up spotify.com and logged in and then went to HA in chrome and this time selected Add integration>Spotify. This time it actually linked to my account. I personally believe it was because I was logged in with Facebook as my Spotify account manager with MFA.

@flyboy021 @athua @asifhu03 @jolivencia911
I put together an install guide for my SpotifyPlus integration on how to create the Application Credentials. The Application Credentials configuration works the same for both the HA Spotify integration as well as my SpotifyPlus integration.

It might help you or others in this thread if you are still having issues.

Hope it helps!

Thank you, the above didn’t work as well as I had hoped. So I had Premium and was unaware that it was different from the free version while adding this. One thing you might add to your guide is that if people are have the error to use this instead. http://homeassistant:8123/auth/external/callback or http://{my internal IP address of HA}:8123/auth/external/callback. This finally worked when I got the error!!!

1 Like