mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #116] Read timeouts #52
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#52
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 @JeremyGrieshop on GitHub (Sep 4, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/116
Every once in a while, a search never returns. It hangs, seemingly forever, until I have to kill my process and start over.
Is there a way to set a timeout value that can be passed along to the underlying requests object?
@eugenio412 commented on GitHub (Sep 4, 2016):
I had the same problem, at the end the problems was that I had a very high ping towards Spotify endpoint, and Spotify wasn't replying, it's weird, but that's how I solved. Try with a VPS with low ping to api.spotify.com
@JeremyGrieshop commented on GitHub (Sep 5, 2016):
Thanks for the feedback (again). I'm running my app from my house, and don't have any intention of hosting it somewhere else.
Seems like the spotipy API could simply put a timeout on the 'requests' call and return if no reply comes back in sufficient time.
@eugenio412 commented on GitHub (Sep 6, 2016):
I know, but that's not how it works right now, I guess they are not interested in very small project, I tried contacting them but they didn't tell my why
@alexey-v-paramonov commented on GitHub (Oct 29, 2016):
I have created a fork and added a new option
requests_timeouthttps://github.com/alexey-v-paramonov/spotipy
So you can add a timeout on Spotipy initialization like this:
spotify = spotipy.Spotify(requests_timeout=10)After that all Spotify requests will have that timeout.
@alexey-v-paramonov commented on GitHub (Oct 29, 2016):
#125