Spotify - Error resolving OAuth token: 403, message='Forbidden', url='https://accounts.spotify.com/api/token'

I have had the Spotify integration up and running for years with zero problems. This week it stopped working with the following errors.

2025-06-05 11:50:03.718 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Token request for spotify_XXXXXXXXXXXXXXXXXXXXXXXXX failed (unknown): unknown error
2025-06-05 11:50:03.719 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Error resolving OAuth token: 403, message='Forbidden', url='https://accounts.spotify.com/api/token'

I have reauthorized it twice now and it works for a while then dies again. I think it is the same for my Google Nest as well, but I will save that for a different post.

I have tried linking with my CloudFlare, my Nabu Casa, and my internal IP and they all end up with the same error.

Anyone else having this problem?

Hello YodaCoda,

It’s not a stray DNS problem, is it?

Is your external access for other things like TTS working OK?
Are you using some DNS blocker software that’s messing with you like pihole or adguard?
Does just rebooting the host help clear odd cache’s?

Thanks.

That made me double/triple check the network. I have a second NIC in the server and somehow that card/IP became the default and shouldn’t have been. I know I never set it up that way.

I just disabled the nic and Spotify and Google Nest started working. I am sure it was doing some circular routing out NIC1 and back in NIC2, so it would obviously fail.

Now I have to figure out how to get Music Assistant to stop using that IP because its failing to start but I can clearly see it using the wrong IP.

Thanks for the nudge in the right direction.

1 Like