error: Os { code: 61, kind: ConnectionRefused, message: "Connection refused" }
- how to investigate?
#1343
michaelherger
started this conversation in
General
Replies: 1 comment 14 replies
-
We have the same use-case in Mopidy-Spotify (using gst-plugin-spotify) and users have reported the same problem. I've never managed to recreate it myself and I've racked up a lot of playtime. Do you get any packet loss if you leave ap-gew4.spotify.com pinging? |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm posting this to the Discussion section rather than the Issues, as I understand I'm using librespot in a somewhat different way. My
spotty
application uses librespot to play single tracks. It would be called for each individual track, rather than sit in the background and be instructed by Connect what to play. This is largely taken from theplay.rs
example.Every now and then a track would not play. And I'd like to understand why that would be, and how I could investigate the issue. So here's the log of one such failed playback:
I understand this is an error coming from the OS? Error 61 - Connection refused. If I google around for this I find references to "server was not there" or similar. Pretty often when this happens simply re-trying the same track again would indeed work as expected. So a failed server connection is more likely than an invalid or unavailable track.
So I thought, let's be stubborn and stupidly have the application try again in case of failure. And voilà:
So this seems to be an intermittent problem on Spotify's end.
But my code certainly is extremely ugly, hacky:
How could this be handled in a nicer fashion (aka. correctly)?
Beta Was this translation helpful? Give feedback.
All reactions