Skip to content

Special error message for rate-limit responses - #238

Open
Toastbrot236 wants to merge 3 commits into
LittleBigRefresh:legacyfrom
Toastbrot236:legacy-hide-429
Open

Toastbrot236 wants to merge 3 commits into
LittleBigRefresh:legacyfrom
Toastbrot236:legacy-hide-429

Conversation

@Toastbrot236

Copy link
Copy Markdown
Contributor

PR for the legacy website where the error message for the login and register requests, aswell as the one returned by ApiRequestCreator.handleRequestError(), is overwritten manually with a more user-friendly message telling the user they've been rate-limited. The message also discourages the user from spamming requests, and tells them to try again later. The message doesn't include the time given by the Retry-After header yet, but this should be enough for now (also, Refresh currently only returns this header on the first rate-limit anyway).

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant