Spotifyd / spotifyd

A spotify daemon
https://spotifyd.rs
GNU General Public License v3.0
9.8k stars 447 forks source link

Unable to connect to device #1267

Closed ThomasFoernzler closed 6 months ago

ThomasFoernzler commented 7 months ago

Description The Spotifyd-device is shown in the list, clicking on it initiates the "connecting to device", but in the end it fails

To Reproduce Start spotifyd on device got to app (webapp, spotify-launcher, android app) click on connect

Expected behavior music plays from device

Logs

Click to show logs ``` CliConfig { config_path: None, no_daemon: true, verbose: true, pid: None, shared_config: SharedConfigValues { username: Some("******"), username_cmd: None, password: Some("*********"), password_cmd: None, use_keyring: false, use_mpris: None, dbus_type: None, on_song_change_hook: None, cache_path: None, no-audio-cache: false, backend: None, volume_controller: None, device: None, control: None, mixer: None, device_name: Some("test"), bitrate: None, audio_format: None, initial_volume: None, volume_normalisation: false, normalisation_pregain: None, zeroconf_port: None, proxy: None, device_type: None, autoplay: false, max_cache_size: None } } Found user shell: Some("/bin/zsh") No proxy specified registering event source with poller: token=Token(2147483649), interests=READABLE Using software volume controller. registering event source with poller: token=Token(0), interests=READABLE | WRITABLE signal: Want signal found waiting giver, notifying poll_want: taker wants! signal: Want signal: Want Ignoring blacklisted access point ap-gew4.spotify.com:4070 Ignoring blacklisted access point ap-gew4.spotify.com:443 Ignoring blacklisted access point ap-gew4.spotify.com:80 Ignoring blacklisted access point ap-gue1.spotify.com:443 Failed to resolve Access Point: Unable to resolve any viable access points. Using fallback "ap.spotify.com:443" Connecting to AP "ap.spotify.com:443" deregistering event source from poller signal: Closed registering event source with poller: token=Token(16777216), interests=READABLE | WRITABLE Authenticated as "******" ! new Session[0] Mixing with softvol and volume control: Log(60.0) new Spirc[0] Session[0] strong=4 weak=1 canonical_username: posbis Country: "DE" new MercuryManager Input volume 58958 mapped to: 49.99% new Player[0] Converting with ditherer: tpdf Using AlsaSink with format: S16 command=AddEventSender command=VolumeSet(58958) subscribed uri=hm://remote/user/posbis/ count=0 registering event source with poller: token=Token(1), interests=READABLE ```

Compilation flags

Versions (please complete the following information):

observed in broswer via console/network logging :

when connecting to play on another "official client": htttp Options request returns 200 http Post request returns 200

when connecting to play on spotfiyd (tested on archlinux) htpp Options request resturn 200 http Post request fails 3 times with 502 request:

https://gew4-spclient.spotify.com/connect-state/v1/connect/transfer/from/422eb2b2b8cb851786b514f260954a564f383b34/to/0cd7bb4e8f344fc14e335847c1af15ad4aa94c4e
{"transfer_options":{"restore_paused":"restore"},"page_instance_id":"3f22116a-36fa-4496-88a7-572f47822175","interaction_id":"3a37eccb-0099-4203-a011-217d3c17f4d7"}

response:

 {"error_type":"INVALID_PLAYER_RESPONSE","message":"Could not parse response from upstream"}
endofhome commented 7 months ago

I'm seeing similar behaviour. I'm running spotifyd 0.3.3 on Raspbian OS.

I can't connect to the spotifyd device from the Spotify Android app. It was working approximately 9 hours ago.

I see the same HTTP responses using the Spotify in the browser on macOS (200 responses for OPTIONS and 3 x 502 responses for a POST request to https://gew1-spclient.spotify.com/connect-state/v1/connect/transfer/from/{id1}/to/{id2}. Payload is the same apart from the values for page_instance_id and interaction_id.

ThomasFoernzler commented 7 months ago

Next day, simply works again maybe a problem on spotify side?

endofhome commented 7 months ago

I can confirm, it's working again for me too. Looks like Spotify restored service :)

eladyn commented 6 months ago

That means we probably can close this now as it seems to have been a temporary issue?