-
Notifications
You must be signed in to change notification settings - Fork 10
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
KeyError when used with an API key with a higher rate limit #25
Comments
Hi @esonderegger the missing |
Hi @lbeaufort - thank you for letting me know that this can be fixed on the FEC side of things. I just checked a test request with both my normal rate limit key and my higher rate-limit key and got the following headers back:
Which shows that it's possible to get a response without the |
Thanks for letting me know! It’s a per-key configuration issue that we only figured out fairly recently. Glad you have a workaround! |
This week the FEC bumped up the rate-limit on the API key I've been using with this library.
Unfortunately, it appears the openFEC API now no longer returns an
X-RateLimit-Remaining
header with their responses.This causes the
_throttled_request
method to throw a KeyError exception that looks like this:I think this should be a pretty easy fix and will put together a PR for it later this afternoon.
The text was updated successfully, but these errors were encountered: