Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ecau): retry loading image contents on certain HTTP errors #669

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

ROpdebee
Copy link
Owner

@ROpdebee ROpdebee commented Jun 8, 2023

Discogs has started to rate-limit image requests. Adding a retry-loop with exponential backoff on 429/5xx HTTP errors should alleviate most of these issues, and will work for other providers too.

Manually tested on a release with 47 Discogs images. 5 retries is not enough, but 10 seems to work.

Fixes #668.

@ROpdebee ROpdebee added bug Something isn't working mb_enhanced_cover_art_uploads labels Jun 8, 2023
@ROpdebee ROpdebee force-pushed the ecau-retry-429 branch 2 times, most recently from 3c45423 to 63fd7f8 Compare June 8, 2023 19:20
ROpdebee added 2 commits June 8, 2023 15:43
Discogs has started to rate-limit image requests. Adding a retry-loop
with exponential backoff on 429/5xx HTTP errors should alleviate most
of these issues, and will work for other providers too.

Manually tested on a release with 47 Discogs images. 5 retries is not
enough, but 10 seems to work.
@ROpdebee ROpdebee merged commit a2694a8 into main Jun 8, 2023
github-actions bot added a commit that referenced this pull request Jun 8, 2023
fix(ecau): retry loading image contents on certain HTTP errors (#669)
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

🚀 Released 1 new userscript version(s):

  • mb_enhanced_cover_art_uploads 2023.6.8.2 in 815c60a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhanced Cover Art Uploads] Rate limit errors
1 participant