mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #1134] [MERGED] Print warnings when a rate/request limit is reached #1176
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#1176
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/1134
Author: @dieser-niko
Created: 6/11/2024
Status: ✅ Merged
Merged: 6/25/2024
Merged by: @dieser-niko
Base:
master← Head:retry-warning📝 Commits (10+)
ab42a2fcreate custom urllib3.Retry class for printing warnings on rate/request limits2e939c8move import urllib3 from client.py to util.py8ef97e1Using Retry.increment instead of Retry.is_retry. Shows the Retry-After value in the warning as well1d6c6c1Making sure that max column <= 99d83999badd types.TracebackTypef5eaf57Change warning in request/rate limit warning1d43ac0Merge branch 'master' into retry-warning24fc45badding all parameters, just to make sure76cd440fixing length of lineed3ba19making sure that response is not None📊 Changes
3 files changed (+34 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
spotipy/client.py(+2 -2)📝
spotipy/util.py(+31 -0)📄 Description
I'm writing this sentence a fifth time. Does what the title says.
This is still a draft because I'm researching how to implement this so we can get the retry-after value right away.
Currently it only prints a warning (whose text could be improved as well)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.