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

attempt to gracefully return 429 errors when uploading assets #1118

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

Jamiras
Copy link
Member

@Jamiras Jamiras commented Aug 18, 2024

Implements #1117

Modifies the upload APIs to return Incomplete instead of Failed when the server responds with a 429 error.

The upload dialog has been modified to handle the Incomplete return code by sleeping for a random period of time between 500 and 1500ms (to let the server recover a bit) and then retry the request. This will be repeated until the request clearly succeeds or fails.

This also affects a few other non-rcheevos APIs like friend activity, but as Incomplete is not a Success code, I believe they will still error out in the same manner as before.

@Jamiras Jamiras added this to the 1.3.1 milestone Aug 18, 2024
@Jamiras Jamiras merged commit 2781b96 into RetroAchievements:master Aug 27, 2024
6 checks passed
@Jamiras Jamiras deleted the feature/upload_429 branch August 27, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant