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

Show proper error message which API gives 429 response #356

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

smurf-U
Copy link
Contributor

@smurf-U smurf-U commented Jan 9, 2023

For the time being, if a response receives a 429 error, it will check to see if X-RateLimit-Delay is present or not in headers. If it is not, it will send the message 'X-RateLimit-Delay header is missing', otherwise it will compute the rate limit and send the static message 'IP is rate limited'.

Need to change

Replace the static message that says 'IP is rate limited' with the message that is received from the response body.

@smurf-U smurf-U requested a review from kyrylo January 9, 2023 09:15
For the time being, if a response receives a 429 error, it will check to see if X-RateLimit-Delay is present or not in headers. If it is not, it will send the message 'X-RateLimit-Delay header is missing', otherwise it will compute the rate limit and send the static message 'IP is rate limited'.

Need to change
--------------

Replace the static message that says 'IP is rate limited' with the message that is received from the response body.
@kyrylo kyrylo merged commit 3095ebf into master Jan 10, 2023
@kyrylo kyrylo deleted the 429_error_update branch January 10, 2023 07:58
kyrylo added a commit that referenced this pull request Jan 10, 2023
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.

2 participants