mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1292] "Connection reset by peer" - possible solution #590
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#590
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hamishfagg on GitHub (Jun 8, 2024).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1292
EDIT: Workaround detailed below. My first solution didn't work.
This isn't a bug. I may have figured out a solution to an issue commonly reported here and wanted to post this in case someone else runs into it:I have been gettingConnection reset by peer (os error 104)in the librespot logs for a while - it usually plays 0.5-1 song before stopping playback and throwing this error.I have a Unifi Gateway Lite as my router and I just turned off "Suspicious Activity" monitoring in the gateway's security settings. Suddenly librespot can play multiple hours of music again without stopping.Annoyingly the gateway doesn't log anything about killing this connection. But I am pretty sure this was the culprit for me.
More full logs for people searching github etc:@hamishfagg commented on GitHub (Jun 8, 2024):
Closing as this isn't an issue with librespot - just wanted a solution documented.
@hamishfagg commented on GitHub (Jun 23, 2024):
Unfortunately this seems to have been a coincidence.
I have started having the same error again, and can't find a solution.
preloadto load the next songJust.. sometimes it will play for hours on end without issue. And other times it can't play a whole song with out kicking me off
@JCBird1012 commented on GitHub (Jun 23, 2024):
Related - https://github.com/librespot-org/librespot/issues/1151.
@hamishfagg commented on GitHub (Aug 8, 2024):
Ok after testing for the last month or so, it seems like I've found a workaround.
I've set up a VPN to tunnel only connections to spotify through a server in the USA (don't think it matters but I picked a server in LA). For whatever reason, connections coming from the US don't seem to be disconnected on the spotify end like connections from new zealand are..
A pretty silly solution but it's been working since I set up the tunnel