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 rate limiting exceptions #695

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

skion
Copy link
Contributor

@skion skion commented Apr 13, 2023

This adds two exception types to enable users to detect rate limited calls which were previously swallowed and converted into a generic InvalidArgumentError, making it impossible to detect rate limiting situations and pass that information through to the end user.

This is being discussed in #666.

I chose to inherit from the ResourceExhaustedError base exception, which seemed to make most sense.

@google-cla
Copy link

google-cla bot commented Apr 13, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@skion skion marked this pull request as ready for review April 13, 2023 20:34
@skion
Copy link
Contributor Author

skion commented May 1, 2023

@pragatimodi Since you are assigned to #666, would you be able to check this out?

@skion skion force-pushed the rate-limiting branch 2 times, most recently from 190b7c8 to 4ad0339 Compare November 15, 2023 20:54
@skion
Copy link
Contributor Author

skion commented Feb 27, 2024

@jonathanedey I see you are mostly maintaining this repo now, is this something you could have a look at?

@lahirumaramba lahirumaramba linked an issue Mar 5, 2024 that may be closed by this pull request
@pragatimodi pragatimodi self-requested a review March 5, 2024 17:07
Copy link
Contributor

@jonathanedey jonathanedey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @skion, This looks great. Thank you so much for your patience in getting this added!

@jonathanedey jonathanedey merged commit a14ca32 into firebase:master Mar 6, 2024
11 checks passed
@skion skion deleted the rate-limiting branch June 24, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Improve exception handling for rate limiting
4 participants