Unnable to connect to spotizerr-auth #4

Open
opened 2025-12-26 15:01:50 +00:00 by bernardgut · 3 comments

Hello

I am running the latest main branches of both spotizerr-auth-phoenix and spotizerr-phoenix:

~ git clone spotizerrphoenix/spotizerr-auth-phoenix
~ python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
...
(.venv)  ~ python spotizerr_auth/main.py
╭───────────────────────────────────────────────────────────╮
│                                                           │
│            🎵 SPOTIZERR AUTHENTICATION UTILITY            │
│ Configure Spotify credentials for your Spotizerr instance │
│                                                           │
╰───────────────────────────────────────────────────────────╯
➤ Enter the base URL of your Spotizerr instance (http://localhost:7171): 
───────────────────────────────────────────────── 🔒 Authentication Status Check ─────────────────────────────────────────────────
ℹ️ Authentication: False 🔑
✅ Authentication disabled - admin privileges are automatic.
✅ Authentication disabled, proceeding...
────────────────────────────────────────────────── ⚙️ Spotify API Configuration ───────────────────────────────────────────────────
✅ Spotizerr API credentials are already configured.
──────────────────────────────────────────────────── 👤 Account Configuration ────────────────────────────────────────────────────
➤ Enter a name for this Spotify account: bag
➤ Enter your Spotify region (e.g., US, DE, MX). This is the 2-letter country code: CH
─────────────────────────────────────────────────── 🎵 Spotify Session Capture ───────────────────────────────────────────────────
╭────────────── 🎵 Connection Instructions ──────────────╮
│                                                        │
│ 1. Open Spotify on another device.                     │
│ 2. Look for 'Spotizerr Auth Tool' in the Connect menu. │
│ 3. Transfer playback to capture the session.           │
│                                                        │
╰─────────── 🌐 Now available on your network ───────────╯
⠧ Waiting for Spotify connection...

Then on spotify it shows up as librespot-spotizerr. When I click connect device nothing happens. Spotify logs (when I double click on the librespot-spotizerr device to connect):

~ spotify --version                                                                           
Spotify version 1.2.77.358.g4339a634, Copyright (c) 2025, Spotify Ltd
~ spotify --debug-level=MAX --show-console
...
...
14:46:04.157 D [f:138                           ] State: wait_for_initial_get_info_response -> login
14:46:04.157 D [f:627                           ] DiscoveryImpl::login
14:46:04.157 I [f:638                           ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found
14:46:04.157 D [f:138                           ] State: login -> wait_for_credentials
14:46:04.157 D [f:91                            ] ConnectCredentialsFetcher::getConnectCredentialsAsync: create a token with type "default"
14:46:04.158 D [f:138                           ] State: wait_for_credentials -> wait_for_add_user_response
14:46:04.159 D [f:213                           ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/

14:46:04.160 D [f:47                            ] Received addUser response: 
14:46:04.160 D [f:826                           ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0
14:46:04.160 D [f:838                           ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0
14:46:04.160 D [f:1209                          ] onLocalDeviceLoginResponse() from '62ee2e9f5cffeb6434349b850182a4edc9b982b0', error code deviceinfo_parsing_error. Log extra: "".
14:46:04.160 D [f:138                           ] State: wait_for_add_user_response -> wait_between_retries
14:46:07.159 D [f:1042                          ] transferToDeviceId to 'librespot-spotizerrbag-ubk-3.local', login retry = 1, transfer retry = 0
14:46:07.161 D [f:826                           ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0
14:46:07.161 D [f:838                           ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0
14:46:07.161 D [f:138                           ] State: wait_between_retries -> login
14:46:07.161 D [f:627                           ] DiscoveryImpl::login
14:46:07.161 I [f:638                           ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found
14:46:07.161 D [f:138                           ] State: login -> wait_for_add_user_response
14:46:07.161 D [f:213                           ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/

14:46:07.163 D [f:47                            ] Received addUser response: 
14:46:07.164 D [f:826                           ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0
14:46:07.164 D [f:838                           ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0
14:46:07.164 D [f:1209                          ] onLocalDeviceLoginResponse() from '62ee2e9f5cffeb6434349b850182a4edc9b982b0', error code deviceinfo_parsing_error. Log extra: "".
14:46:07.164 D [f:138                           ] State: wait_for_add_user_response -> wait_between_retries
14:46:10.164 D [f:1042                          ] transferToDeviceId to 'librespot-spotizerrbag-ubk-3.local', login retry = 2, transfer retry = 0
14:46:10.165 D [f:826                           ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0
14:46:10.165 D [f:838                           ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0
14:46:10.165 D [f:138                           ] State: wait_between_retries -> login
14:46:10.165 D [f:627                           ] DiscoveryImpl::login
14:46:10.165 I [f:638                           ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found
14:46:10.165 D [f:138                           ] State: login -> wait_for_add_user_response
14:46:10.165 D [f:213                           ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/

14:46:10.167 D [f:47                            ] Received addUser response: 
14:46:10.169 D [f:826                           ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0
14:46:10.169 D [f:838                           ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0
14:46:10.169 D [f:1209                          ] onLocalDeviceLoginResponse() from '62ee2e9f5cffeb6434349b850182a4edc9b982b0', error code deviceinfo_parsing_error. Log extra: "".
14:46:10.169 D [f:138                           ] State: wait_for_add_user_response -> wait_between_retries
14:46:13.169 D [f:1042                          ] transferToDeviceId to 'librespot-spotizerrbag-ubk-3.local', login retry = 3, transfer retry = 0
14:46:13.169 D [f:826                           ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0
14:46:13.169 D [f:838                           ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0
14:46:13.169 D [f:138                           ] State: wait_between_retries -> login
14:46:13.169 D [f:627                           ] DiscoveryImpl::login
14:46:13.170 I [f:638                           ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found
14:46:13.170 D [f:138                           ] State: login -> wait_for_add_user_response
14:46:13.170 D [f:213                           ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/
...

It goes 4 times in that loop then stops.

Any ideas ?

Thanks

Hello I am running the latest main branches of **both** spotizerr-auth-phoenix and spotizerr-phoenix: ``` ~ git clone spotizerrphoenix/spotizerr-auth-phoenix ~ python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt ... (.venv) ~ python spotizerr_auth/main.py ╭───────────────────────────────────────────────────────────╮ │ │ │ 🎵 SPOTIZERR AUTHENTICATION UTILITY │ │ Configure Spotify credentials for your Spotizerr instance │ │ │ ╰───────────────────────────────────────────────────────────╯ ➤ Enter the base URL of your Spotizerr instance (http://localhost:7171): ───────────────────────────────────────────────── 🔒 Authentication Status Check ───────────────────────────────────────────────── ℹ️ Authentication: False 🔑 ✅ Authentication disabled - admin privileges are automatic. ✅ Authentication disabled, proceeding... ────────────────────────────────────────────────── ⚙️ Spotify API Configuration ─────────────────────────────────────────────────── ✅ Spotizerr API credentials are already configured. ──────────────────────────────────────────────────── 👤 Account Configuration ──────────────────────────────────────────────────── ➤ Enter a name for this Spotify account: bag ➤ Enter your Spotify region (e.g., US, DE, MX). This is the 2-letter country code: CH ─────────────────────────────────────────────────── 🎵 Spotify Session Capture ─────────────────────────────────────────────────── ╭────────────── 🎵 Connection Instructions ──────────────╮ │ │ │ 1. Open Spotify on another device. │ │ 2. Look for 'Spotizerr Auth Tool' in the Connect menu. │ │ 3. Transfer playback to capture the session. │ │ │ ╰─────────── 🌐 Now available on your network ───────────╯ ⠧ Waiting for Spotify connection... ``` Then on spotify it shows up as `librespot-spotizerr`. When I click connect device nothing happens. Spotify logs (when I double click on the `librespot-spotizerr` device to connect): ``` ~ spotify --version Spotify version 1.2.77.358.g4339a634, Copyright (c) 2025, Spotify Ltd ~ spotify --debug-level=MAX --show-console ... ... 14:46:04.157 D [f:138 ] State: wait_for_initial_get_info_response -> login 14:46:04.157 D [f:627 ] DiscoveryImpl::login 14:46:04.157 I [f:638 ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found 14:46:04.157 D [f:138 ] State: login -> wait_for_credentials 14:46:04.157 D [f:91 ] ConnectCredentialsFetcher::getConnectCredentialsAsync: create a token with type "default" 14:46:04.158 D [f:138 ] State: wait_for_credentials -> wait_for_add_user_response 14:46:04.159 D [f:213 ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/ 14:46:04.160 D [f:47 ] Received addUser response: 14:46:04.160 D [f:826 ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0 14:46:04.160 D [f:838 ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0 14:46:04.160 D [f:1209 ] onLocalDeviceLoginResponse() from '62ee2e9f5cffeb6434349b850182a4edc9b982b0', error code deviceinfo_parsing_error. Log extra: "". 14:46:04.160 D [f:138 ] State: wait_for_add_user_response -> wait_between_retries 14:46:07.159 D [f:1042 ] transferToDeviceId to 'librespot-spotizerrbag-ubk-3.local', login retry = 1, transfer retry = 0 14:46:07.161 D [f:826 ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0 14:46:07.161 D [f:838 ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0 14:46:07.161 D [f:138 ] State: wait_between_retries -> login 14:46:07.161 D [f:627 ] DiscoveryImpl::login 14:46:07.161 I [f:638 ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found 14:46:07.161 D [f:138 ] State: login -> wait_for_add_user_response 14:46:07.161 D [f:213 ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/ 14:46:07.163 D [f:47 ] Received addUser response: 14:46:07.164 D [f:826 ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0 14:46:07.164 D [f:838 ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0 14:46:07.164 D [f:1209 ] onLocalDeviceLoginResponse() from '62ee2e9f5cffeb6434349b850182a4edc9b982b0', error code deviceinfo_parsing_error. Log extra: "". 14:46:07.164 D [f:138 ] State: wait_for_add_user_response -> wait_between_retries 14:46:10.164 D [f:1042 ] transferToDeviceId to 'librespot-spotizerrbag-ubk-3.local', login retry = 2, transfer retry = 0 14:46:10.165 D [f:826 ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0 14:46:10.165 D [f:838 ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0 14:46:10.165 D [f:138 ] State: wait_between_retries -> login 14:46:10.165 D [f:627 ] DiscoveryImpl::login 14:46:10.165 I [f:638 ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found 14:46:10.165 D [f:138 ] State: login -> wait_for_add_user_response 14:46:10.165 D [f:213 ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/ 14:46:10.167 D [f:47 ] Received addUser response: 14:46:10.169 D [f:826 ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0 14:46:10.169 D [f:838 ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0 14:46:10.169 D [f:1209 ] onLocalDeviceLoginResponse() from '62ee2e9f5cffeb6434349b850182a4edc9b982b0', error code deviceinfo_parsing_error. Log extra: "". 14:46:10.169 D [f:138 ] State: wait_for_add_user_response -> wait_between_retries 14:46:13.169 D [f:1042 ] transferToDeviceId to 'librespot-spotizerrbag-ubk-3.local', login retry = 3, transfer retry = 0 14:46:13.169 D [f:826 ] device_becoming_active: 62ee2e9f5cffeb6434349b850182a4edc9b982b0 14:46:13.169 D [f:838 ] device bag-ubk-3 0b582efe16998422bd0dfa68e40e6561129aa960 active 0 becoming active 0 14:46:13.169 D [f:138 ] State: wait_between_retries -> login 14:46:13.169 D [f:627 ] DiscoveryImpl::login 14:46:13.170 I [f:638 ] DiscoveryImpl::login - device 'librespot-spotizerr' / '62ee2e9f5cffeb6434349b850182a4edc9b982b0' found 14:46:13.170 D [f:138 ] State: login -> wait_for_add_user_response 14:46:13.170 D [f:213 ] ConnectZeroconfLoginProtocol: login http://192.168.200.95:13131/ ... ``` It goes 4 times in that loop then stops. Any ideas ? Thanks

Getting the same as well
The other devices i have tried is Android phone and Linux client.

Getting the same as well The other devices i have tried is Android phone and Linux client.

that's strange. have you tried with a desktop client?

also just made a new update to spotizerr-phoenix and spotizerr-auth-phoenix

give the new update a try, hopefully the new updates fix your issue or at least gives you a better idea through the logging

that's strange. have you tried with a desktop client? also just made a new update to spotizerr-phoenix and spotizerr-auth-phoenix - new release v0.0.15 of `spotizerr-auth-phoenix` will give you the ability to custom device info/name with preset defaults - includes logging for debugging purposes - full spotizerr-phoenix release notes: https://lavaforge.org/spotizerrphoenix/spotizerr-phoenix/releases/tag/v4.0.16 give the new update a try, hopefully the new updates fix your issue or at least gives you a better idea through the logging

Hum
last version with debuging works !
but... cant connect from my android device (app).
Spotify Connect needs a premium account.. So, I am stuck
sad

Hum last version with debuging works ! but... cant connect from my android device (app). Spotify Connect needs a premium account.. So, I am stuck sad
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
spotizerrphoenix/spotizerr-auth-phoenix#4
No description provided.