René's URL Explorer Experiment


Title: [FR] Improve exception handling for rate limiting · Issue #666 · firebase/firebase-admin-python · GitHub

Open Graph Title: [FR] Improve exception handling for rate limiting · Issue #666 · firebase/firebase-admin-python

X Title: [FR] Improve exception handling for rate limiting · Issue #666 · firebase/firebase-admin-python

Description: Is your feature request related to a problem? Please describe. When using the SDK to create email action links, such as for password reset or email verifications, Firebase is strongly rate limiting for good reason. However, it is current...

Open Graph Description: Is your feature request related to a problem? Please describe. When using the SDK to create email action links, such as for password reset or email verifications, Firebase is strongly rate limiting...

X Description: Is your feature request related to a problem? Please describe. When using the SDK to create email action links, such as for password reset or email verifications, Firebase is strongly rate limiting...

Opengraph URL: https://github.com/firebase/firebase-admin-python/issues/666

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FR] Improve exception handling for rate limiting","articleBody":"**Is your feature request related to a problem? Please describe.**\r\n\r\nWhen using the SDK to create email action links, such as for password reset or email verifications, Firebase is strongly rate limiting for good reason. However, it is currently impossible to (programmatically) detect whether the reason for failure was indeed rate limiting, or something else, since in both cases a generic `InvalidArgumentError` exception is raised.\r\n\r\n**Describe the solution you'd like**\r\n\r\nA way to distinguish rate limiting from other client or server side errors, so that my API is able to return 429 or 503 responses with a `Retry-After` header instead of a generic 500 response in those cases.\r\n\r\n**Describe alternatives you've considered**\r\n\r\nIn order to prevent my API from returning generic 500 I'm considering to implement my own rate limiting in front now. However, that is less elegant since I would need to heuristically match Firebase's rate limiting algorithm in order to prevent emitting 500's anyway.\r\n\r\n**Additional context**\r\n\r\nCurrently the `RESET_PASSWORD_EXCEED_LIMIT` error code from Firebase is swallowed and converted into a `INVALID_ARGUMENT` code, because this type of exception is not special-cased:\r\n\r\n    InvalidArgumentError('Error while calling Auth service (RESET_PASSWORD_EXCEED_LIMIT).')\r\n\r\nNote that the same holds for building email verification links:\r\n\r\n    InvalidArgumentError('Error while calling Auth service (TOO_MANY_ATTEMPTS_TRY_LATER).')\r\n\r\nIn both cases the original code is not introspectable in the exception, except by parsing the error string.","author":{"url":"https://github.com/skion","@type":"Person","name":"skion"},"datePublished":"2023-01-04T10:42:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/666/firebase-admin-python/issues/666"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7f68accf-760b-da1c-32e8-19c3a415d443
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA58:132892:432B14:559645:699054FC
html-safe-nonce940c445c6ff5cacdaba6a7bcecbd277a73e1da9e4b580c0e9298598113068ac4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTU4OjEzMjg5Mjo0MzJCMTQ6NTU5NjQ1OjY5OTA1NEZDIiwidmlzaXRvcl9pZCI6IjUzOTY0NDk2MzE4NzgwNjY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc99388eda12749cbafdb7a37448e2e686a0d756f94a0b457f6176a5cc8129e04
hovercard-subject-tagissue:1518739449
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-python/666/issue_layout
twitter:imagehttps://opengraph.githubassets.com/46bf20c94c8772bdf3cd19b2490952e40fe1480123c8c80d52f21afa013bd93b/firebase/firebase-admin-python/issues/666
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/46bf20c94c8772bdf3cd19b2490952e40fe1480123c8c80d52f21afa013bd93b/firebase/firebase-admin-python/issues/666
og:image:altIs your feature request related to a problem? Please describe. When using the SDK to create email action links, such as for password reset or email verifications, Firebase is strongly rate limiting...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskion
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/firebase/firebase-admin-python git https://github.com/firebase/firebase-admin-python.git
octolytics-dimension-user_id1335026
octolytics-dimension-user_loginfirebase
octolytics-dimension-repository_id84979152
octolytics-dimension-repository_nwofirebase/firebase-admin-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id84979152
octolytics-dimension-repository_network_root_nwofirebase/firebase-admin-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/firebase/firebase-admin-python/issues/666#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffirebase%2Ffirebase-admin-python%2Fissues%2F666
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffirebase%2Ffirebase-admin-python%2Fissues%2F666
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=firebase%2Ffirebase-admin-python
Reloadhttps://github.com/firebase/firebase-admin-python/issues/666
Reloadhttps://github.com/firebase/firebase-admin-python/issues/666
Reloadhttps://github.com/firebase/firebase-admin-python/issues/666
firebase https://github.com/firebase
firebase-admin-pythonhttps://github.com/firebase/firebase-admin-python
Notifications https://github.com/login?return_to=%2Ffirebase%2Ffirebase-admin-python
Fork 347 https://github.com/login?return_to=%2Ffirebase%2Ffirebase-admin-python
Star 1.1k https://github.com/login?return_to=%2Ffirebase%2Ffirebase-admin-python
Code https://github.com/firebase/firebase-admin-python
Issues 79 https://github.com/firebase/firebase-admin-python/issues
Pull requests 38 https://github.com/firebase/firebase-admin-python/pulls
Actions https://github.com/firebase/firebase-admin-python/actions
Projects 0 https://github.com/firebase/firebase-admin-python/projects
Security 0 https://github.com/firebase/firebase-admin-python/security
Insights https://github.com/firebase/firebase-admin-python/pulse
Code https://github.com/firebase/firebase-admin-python
Issues https://github.com/firebase/firebase-admin-python/issues
Pull requests https://github.com/firebase/firebase-admin-python/pulls
Actions https://github.com/firebase/firebase-admin-python/actions
Projects https://github.com/firebase/firebase-admin-python/projects
Security https://github.com/firebase/firebase-admin-python/security
Insights https://github.com/firebase/firebase-admin-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/firebase/firebase-admin-python/issues/666
New issuehttps://github.com/login?return_to=https://github.com/firebase/firebase-admin-python/issues/666
#695https://github.com/firebase/firebase-admin-python/pull/695
[FR] Improve exception handling for rate limitinghttps://github.com/firebase/firebase-admin-python/issues/666#top
#695https://github.com/firebase/firebase-admin-python/pull/695
https://github.com/pragatimodi
api: authhttps://github.com/firebase/firebase-admin-python/issues?q=state%3Aopen%20label%3A%22api%3A%20auth%22
type: feature requesthttps://github.com/firebase/firebase-admin-python/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com/skion
https://github.com/skion
skionhttps://github.com/skion
on Jan 4, 2023https://github.com/firebase/firebase-admin-python/issues/666#issue-1518739449
pragatimodihttps://github.com/pragatimodi
api: authhttps://github.com/firebase/firebase-admin-python/issues?q=state%3Aopen%20label%3A%22api%3A%20auth%22
type: feature requesthttps://github.com/firebase/firebase-admin-python/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.