mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[PR #65] [MERGED] Use 'Retry-After' header if present. #747
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#747
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?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/65
Author: @bentappin
Created: 9/24/2015
Status: ✅ Merged
Merged: 12/31/2016
Merged by: @plamere
Base:
master← Head:retry-after📝 Commits (1)
aecd392Use 'Retry-After' header if present.📊 Changes
1 file changed (+14 additions, -6 deletions)
View changed files
📝
spotipy/client.py(+14 -6)📄 Description
When the Web API responds with a status code of
429it sets theRetry-Afterheader to let you know how long to wait before retrying. https://developer.spotify.com/web-api/user-guide/#rate-limitingThis PR honours that header and defaults back to the original
delayvariable if not present.requests headers use a case insensitive dictionary so we don't have to worry about the case that Spotify respond with.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.