Closed sulliwane closed 2 months ago
To be honest, I have not seen this error before.
The first thing I would do after the HA reboot would be to clear your browser cache. With the way HA cache's web-pages, it could simply be a caching issue (not likely, but want to rule it out).
It could also be a temporary issue related to the Spotify web authorization server. It's rare, but it does happen.
With that said, can you confirm the following for me:
It appears you have (nearly) the latest HA version installed (2024.08.1).
I assume you followed the instructions in the SpotifyPlus Device Configuration Documents Step 2, and have successfully created a Spotify Developer Application and obtained your ClientId / Secret values. The only potential thing that might be wrong there is the use of the +
in the application name and description. I would not think it would hurt anything, but I tend to avoid special characters in application names.
I assume you are using the SpotifyPlus Device Configuration Documents Step 3 to start defining the Application Credentials, and this is where the error is occurring.
Questions:
1) is this the first OAuth Application Credentials that you have defined? Or have you configured the stock HA Spotify integration successfully? 2) what browser are you using to configure the integration? e.g. "Chrome from Desktop", "Safari on my iPad", etc. 3) any System Log entries related to spotifyplus or spotifywebapipython?
Please let me know. Thanks
Restarted HA, then tried to setup Spotifyplus in a new chrome browser session and bam, it worked!
Thanks a lot for your very thorough reply and the time, much appreciated :+1:
Well I spoke too quick.
I updated HA to 2024.8.2 and restarted HA. I noticed SpotifyPlus was again like this:
And going through the Oauth setup one more time (in a private browser window) lead to the same error: Logs show this:
So reopening the issue....kek
In the try before (when it worked), were you able to authorize the access via Spotify? e.g. it should have prompted you to login with your Spotify credentials (unless they were cached), and then it should have prompted you to authorize the access by clicking on "I Agree" or "I Approve", something like that.
The fact that it worked before should have completed setup and authorized the credentials.
I would reboot HA, completely clear the cache (including cookies), and then try the SpotifyPlus setup again.
So I updated to the latest version of the component and following that, now I've already rebooted 3 times HA and each time Spotifyplus is correctly recognized 👍
I'm not 100% sure it's linked to the latest version tho...but so far so good!
You can verify the version installed by going to Settings \ Devices and Services \ SpotifyPlus
(e.g. http://homeassistant.local:8123/config/integrations/integration/spotifyplus
) and checking the version info that is displayed just under the Spotify logo:
I still believe the issue here is due to the way Home Assistant cache's pages in the browser. A reboot and clearing of cache tends to fix a lot of things in HA. lol
Glad it is working for you.
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1386 Downloaded Repositories | 14AccuWeather
can_reach_server | pending -- | -- remaining_requests | 20Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Debian GNU/Linux 11 (bullseye) -- | -- update_channel | stable supervisor_version | supervisor-2024.08.0 agent_version | 1.5.1 docker_version | 24.0.2 disk_total | 28.4 GB disk_used | 14.4 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | supervisor_api | ok version_api | ok installed_addons | Samba share (12.3.2), Mosquitto broker (6.4.1), Duck DNS (1.18.0), File editor (5.8.0), Node-RED (18.0.5), Zigbee2MQTT (1.39.1-1), eufy-security-ws (1.8.0-2), Frigate (0.14.0)Dashboards
dashboards | 3 -- | -- resources | 5 views | 9 mode | storageRecorder
oldest_recorder_run | August 13, 2024 at 07:25 -- | -- current_recorder_run | August 13, 2024 at 09:25 estimated_db_size | 135.84 MiB database_engine | sqlite database_version | 3.45.3Xiaomi Miot Auto
component_version | 0.7.7 -- | -- can_reach_server | ok can_reach_spec | ok logged_accounts | 0 total_devices | 0Checklist
Describe the issue
Describe the bug When adding my credentials, it fails with below error message:
Screenshots
Environment details:
Output of HA logs
But the authorization code is valid. Just tried creating a new one:
Same error:
OAuth request failed while processing SpotifyPlus OAuth Application Credentials; please check the System Log for further information
Thanks for the help!