[GH-ISSUE #778] Best way to avoid read timed out? #480

Open
opened 2026-02-27 23:22:51 +03:00 by kerem · 2 comments
Owner

Originally created by @jadenmazzone on GitHub (Feb 1, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/778

What is the best way to prevent "error: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)"? Setting backoff_factor, retries, etc in spotipy.Spotify()?

Originally created by @jadenmazzone on GitHub (Feb 1, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/778 What is the best way to prevent "error: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)"? Setting backoff_factor, retries, etc in spotipy.Spotify()?
Author
Owner

@TRAwake commented on GitHub (Aug 7, 2023):

Did you find any solution ?

<!-- gh-comment-id:1668308676 --> @TRAwake commented on GitHub (Aug 7, 2023): Did you find any solution ?
Author
Owner

@qcgm1978 commented on GitHub (May 22, 2025):

SpotifyOAuth(
                scope=scope,
                client_id="",
                client_secret="",
                redirect_uri="http://127.0.0.1:3001",
                requests_timeout=20,
                # timeout: del .cache(maybe) and set show_dialog https://github.com/spotipy-dev/spotipy/blob/9dfb7177b8d7bb98a5a6014f8e6436812a47576f/FAQ.md
                show_dialog=True
                # open_browser=False
            ),
<!-- gh-comment-id:2900095681 --> @qcgm1978 commented on GitHub (May 22, 2025): ``` SpotifyOAuth( scope=scope, client_id="", client_secret="", redirect_uri="http://127.0.0.1:3001", requests_timeout=20, # timeout: del .cache(maybe) and set show_dialog https://github.com/spotipy-dev/spotipy/blob/9dfb7177b8d7bb98a5a6014f8e6436812a47576f/FAQ.md show_dialog=True # open_browser=False ), ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#480
No description provided.