hassio-addons / addon-spotify-connect

Spotify Connect - Home Assistant Community Add-ons
https://addons.community
MIT License
170 stars 51 forks source link

Frequent disconnects, Mercury error #264

Open jo-mueller opened 6 days ago

jo-mueller commented 6 days ago

Problem description

I can correctly select my HASS instance in the spotify app in my local wifi and start the playback. However, after about 8-10 minutes into the playback, the sound interrupts and I have to reconnect to the HASS speaker in Spotify. Possible duplicate of #198.

Things I tried: Updated all versions, chose different network access points (WiFi, LAN, phone mobile data tethering)

Expected behavior

No disconnects during playback

Current behavior

Frequent disconnects.

To reproduce

Connect to HASS in Spotify, start playback and wait for 8-10 minutes.

Logs

librespot_playback::player] Loading <Blue> with Spotify URI <spotify:track:3XtKluN0ce1EjiAax8HFw8> 
[2024-06-28T14:40:00Z INFO librespot_playback::player] <Blue> (336290 ms) loaded
[2024-06-28T14:45:36Z ERROR librespot_playback::player] Unable to load audio item: MercuryError
[2024-06-28T14:45:36Z ERROR librespot_core::session] Connection reset by peer (os error 104)
[2024-06-28T14:45:36Z ERROR librespot_connect::spirc] subscription terminated 
[2024-06-28T14:45:36Z WARN librespot] Spirc shut down unexpectedly 
[2024-06-28T14:45:36Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:4070 
[2024-06-28T14:45:36Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:443

Edit: Formatted traceback

sinclairpaul commented 5 days ago

I would suggest looking upstream as the addon wraps the software https://github.com/librespot-org/librespot

jo-mueller commented 5 days ago

Is it possible to find out what version of librespot is installed in my local environment?