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 #254

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

smurf-U
Copy link
Contributor

@smurf-U smurf-U commented Jan 3, 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.

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 3, 2023 10:32
@smurf-U smurf-U force-pushed the update_429_response branch 3 times, most recently from f99d2d7 to 1468648 Compare January 3, 2023 10:49
@smurf-U smurf-U merged commit 94b1506 into master Jan 10, 2023
@smurf-U smurf-U deleted the update_429_response branch January 10, 2023 09:07
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