shazamio / ShazamIO

🎵 Is a free asynchronous library from reverse engineered Shazam API written in Python 3.8+ with asyncio and aiohttp.
MIT License
490 stars 69 forks source link

Backoff and retry on HTTP 429 (Too Many Requests). #82

Closed mikemutex closed 7 months ago

mikemutex commented 8 months ago

Shazam appears to have started enforcing a rate limit of ~5 requests per minute, after which an HTTP 429 response is returned. Attempting to handle the response results in a FailedDecodeJson exception being raised. Instead, backoff and retry the request.

mikemutex commented 7 months ago

Friendly ping. Thanks!

dotX12 commented 7 months ago

@mikemutex, hello! https://github.com/shazamio/ShazamIO/pull/91

dotX12 commented 7 months ago

Closed. added to release 0.5.0.