homeassistantcomponent_spotifyplus: librespot: bad credentials

System Health details

System Information

version core-2024.9.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.46-haos
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.1
Stage running
Available Repositories 1424
Downloaded Repositories 7
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 13.1
update_channel stable
supervisor_version supervisor-2024.09.1
agent_version 1.6.0
docker_version 26.1.4
disk_total 30.8 GB
disk_used 10.5 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization kvm
board ova
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.1), Samba share (12.3.2), Zigbee2MQTT (1.40.1-1), NGINX Home Assistant SSL proxy (3.10.1), Advanced SSH & Web Terminal (19.0.0), Matter Server (6.5.1)
Dashboards
dashboards 6
resources 1
views 5
mode storage
Recorder
oldest_recorder_run 19. September 2024 um 04:57
current_recorder_run 28. September 2024 um 08:19
estimated_db_size 1263.86 MiB
database_engine sqlite
database_version 3.45.3
SpotifyPlus
integration_version v1.0.58
clients_configured 1: meiser79 (premium)
api_endpoint_reachable ok

Checklist

  • I have enabled SmartInspect debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues…

Describe the issue

I try to use SpotifyPlus together with a librespot instance (running latest 0.5.0-dev compiled today in a Docker container). The zeroconf authentication fails with [2024-09-28T09:16:31Z ERROR librespot] could not initialize spirc: Permission denied { Login failed with reason: Bad credentials }

I captured the zeroconf communication and posted it in the HA forum.

I do not see why it does not work. BTW, my loginID is not a canonical one, but is identical to my username.

Reproduction steps

none

Debug logs

none

Diagnostics dump

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

I checked with 2 accounts which belong to the same family account. The content of librespot’s credentials.json is replaced with the respective account token, so it just handles the last connected account. I just have my “meiser79” account configured in HA. I can still start a playlist with this account if the other account is connected to the librespot device (it gets kicked out).

So from my point of view, everything works fine and as expected!!! Very well done! Therefore, I close this bug report.

One remark; wiki says /config/.storage/spotifywebapiPython_librespot_credentials.json, but the file needs to be /config/.storage/SpotifyWebApiPython_librespot_credentials.json

Hi, I cannot update the integration in HA. Do you need to make a release as version 1.0.59 is not shown in the Releaases tab.

I’ll check with multiple accounts, we have a family account with 2 accounts, let’s see how librespot handles it in the credentials.json.