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

Add error handling support for http 429 #904

Merged
merged 2 commits into from Mar 29, 2019
Merged

Add error handling support for http 429 #904

merged 2 commits into from Mar 29, 2019

Conversation

devth
Copy link
Member

@devth devth commented Mar 29, 2019

If API quota is passed, Weatherbit will return a :body like:

{:status_code 429
 :status_message "Your request count (1007) is over the allowed limit of 1000 per day - Upgrade your key, or retry after 1343.2 minutes"}

This change handles it, e.g.:

image

@devth devth merged commit 08861a2 into master Mar 29, 2019
@devth devth removed the in progress label Mar 29, 2019
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.

None yet

1 participant