Spotify integration via UI aborted

I have removed my Spotify integration and added a new app on the spotify dev page, configured the correct callback URL, have my external/internal URLs set up in HA (0.115.3) and when I try to add the Spotify integration I just get aborted like people above.

Any ideas?

I managed to get it to work, logged into HA from Chrome on my android phone (connected to wifi) and this allowed me to set it up all the way whereas Chrome on my windows PC did not

I have the same issue, updated the oauth login url and settings in configuration.yml, but only receive a ā€œabortedā€ message during integration installation with no further errors (also nothing in the javascript console). :confused:

Hi everyoneā€¦ what happens is you need to open Homeassiant with the same IP you in spotitfy Redirect RI ( http://<local_ip>/auth/external/callback ) otherwise home assistant will fail with ā€œAbortedā€ messageā€¦

3 Likes

setting URL (local and external ) on the ui fix my issue :slight_smile:

@Scayn solution above fixed that precise problem for me

thank you

Great tips. Iā€™ve added a pull request to get the docs updated.

1 Like

First off, thanks to everyone here, but I too ran into the dreaded URI issue. The wiki and this thread got me most of the way there, but this finished the install for me, so I am going to pass on what I learned in hope that it helps someone else.

Problem: ā€œINVALID_CLIENT: Invalid redirect URIā€ issue.

Solution:
The problem was that I always authenticated to the ā€œhomeassistant.local:8123ā€ domain and NOT 192.168.XX.XXX domain. Thus, when it was passing the URI of 192.168.XX.XX, Iā€™d get that error. So, I logged into my HA by opening chrome and going to the 192.168.XX.XX:8123, logging in successful, then re-doing the integration and the error went away,

My setup:

  • hassio on RPI 4 running v 2020.12.7
  • No external ports; internal IP only.
  • I did set the internal/external URLs in the configuration > general section to my 192.XX address.
  • I do my config access via Chrome on windows

Hopefully this helps someone else .

1 Like

I can also confirm that these steps are mandatory to create a successful Spotify integration. It now showed a confirmation page with our Spotify account credentials as an extra step where it did not before.

This is exactly what enabled me to get past the URI and 500 Error issues ā€“ logging into to my local numeric IP address instead of homeassistant.local, and then following the steps as described in the official docs. Thank you!

1 Like

Thanks, worked for me, but remember to restart home assistant after making changes, at first i was getting "aborterd``error, after restarting it worked. acess from your ip, NOT from homeassistant.local.

1 Like

This error kept me busy for dayā€™s. Thank you for the solution!!

1 Like

I did everything he mentioned and had it working. The secretkey on the side of Spotify had changed during the configuration. Now I am in some kind of loop where the url is not getting accepted. I canā€™t change the client secret anymore in the configuration of HA. I donā€™t get the screen for that it just directly open a window with the URL. How can I get the wrong key out of the HA configuration