Skip to content

Blacklist ap-gew4 access point #1026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2022
Merged

Conversation

roderickvd
Copy link
Member

Only ap-gew4.spotify.com is listed now, but the mechanism allows to add other access points to the blacklist if so necessary in the future.

Fixes #972

@roderickvd roderickvd added the SpotifyAPI Interop b/w librespot and Spotify label Jul 26, 2022
@michaelherger
Copy link
Contributor

Works for me. I'd only fear that banning one host would not last for long...

@JasonLG1979
Copy link
Contributor

So far so good. I would much prefer graceful failure and recovery over a blacklist though.

@kingosticks
Copy link
Contributor

In #972 the log shows the error when trying to load a track. Is that because other commands work OK or is that because it's the first command they do that requires a request to the AP? If the latter, could we do a test command soon as the session is active, and then fallback to the next AP in the list if it fails? Rather than trying to gracefully handle request failure everywhere, which sounds like it might be a lot of work?

@JasonLG1979
Copy link
Contributor

@kingosticks That's a really good question. Can we expect that an AP will fail right away or will it work initially but then fail at some later time?

@roderickvd
Copy link
Member Author

So far so good. I would much prefer graceful failure and recovery over a blacklist though.

Not going to happen in dev. Even quite hard to do in new-api but we'll get there eventually.

In #972 the log shows the error when trying to load a track. Is that because other commands work OK or is that because it's the first command they do that requires a request to the AP? If the latter, could we do a test command soon as the session is active, and then fallback to the next AP in the list if it fails? Rather than trying to gracefully handle request failure everywhere, which sounds like it might be a lot of work?

Yes it happens when trying to download an audio file over Mercury. Because this does not happen in new-api when downloading over HTTP even on ap-gew4, I'd rather spend time updating new-api than making this now some sophisticated solution in dev. This just serves as a band-aid.

@JasonLG1979
Copy link
Contributor

Fair enough. I say pull the trigger and do a v0.4.2 (or whatever) release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SpotifyAPI Interop b/w librespot and Spotify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suddenly unable to play any tracks
4 participants