René's URL Explorer Experiment


Title: UserNotFoundError is not raised as expected. Instead, UnexpectedResponseError is raised. · Issue #813 · firebase/firebase-admin-python · GitHub

Open Graph Title: UserNotFoundError is not raised as expected. Instead, UnexpectedResponseError is raised. · Issue #813 · firebase/firebase-admin-python

X Title: UserNotFoundError is not raised as expected. Instead, UnexpectedResponseError is raised. · Issue #813 · firebase/firebase-admin-python

Description: [READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore GitHub repo. Firestore bugs reported in t...

Open Graph Description: [READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore G...

X Description: [READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore G...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UserNotFoundError is not raised as expected. Instead, UnexpectedResponseError is raised.","articleBody":"### [READ] Step 1: Are you in the right place?\r\n\r\n  * For issues related to __the code in this repository__ file a GitHub issue.\r\n  * If the issue pertains to __Cloud Firestore__, report directly in the\r\n    [Python Firestore](https://github.com/googleapis/python-firestore) GitHub repo. Firestore\r\n    bugs reported in this repo will be closed with a reference to the Python Firestore\r\n    project.\r\n  * For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/)\r\n    with the `firebase` tag.\r\n  * For general Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk)\r\n    google group.\r\n  * For help troubleshooting your application that does not fall under one\r\n    of the above categories, reach out to the personalized\r\n    [Firebase support channel](https://firebase.google.com/support/).\r\n\r\n### [REQUIRED] Step 2: Describe your environment\r\n\r\n  * Operating System version: 14.2.1(23C71)\r\n  * Firebase SDK version: 6.3.0\r\n  * Firebase Product: auth\r\n  * Python version:3.12.0\r\n  * Pip version: 24.0\r\n\r\n### [REQUIRED] Step 3: Describe the problem\r\n\r\nWhen calling the `generate_password_reset_link`, we got errors `Failed to generate email action link.` which is raised in `_auth_utils.UnexpectedResponseError`.\r\nWe expect UserNotFoundError to be raised if the email in request is not in authentication list.\r\n\r\n#### Steps to reproduce:\r\n\r\nWhat happened? How can we make the problem occur?\r\nThis could be a description, log/console output, etc.\r\n\r\nCalling `generate_password_reset_link` with invalid email\r\n\r\n#### Relevant Code:\r\n\r\n```\r\ndef reset_password(\r\n        self, request: PostResetPasswordRequest, lang: str, client: MailjetClient\r\n    ):\r\n        try:\r\n            password_link = auth.generate_password_reset_link(request.email)\r\n        except auth.UserNotFoundError:\r\n            # For security reasons, we don't want to reveal whether the email exists or not\r\n            logging.info(\r\n                f\"Password reset request for non-existing email: {request.email}\"\r\n            )\r\n            return None\r\n\r\n        except Exception as e:\r\n            logging.error(f\"Failed to accept password reset request: {e}\")\r\n            return None\r\n```\r\n\r\n```\r\ndef generate_email_action_link(self, action_type, email, action_code_settings=None):\r\n        \"\"\"Fetches the email action links for types\r\n\r\n        Args:\r\n            action_type: String. Valid values ['VERIFY_EMAIL', 'EMAIL_SIGNIN', 'PASSWORD_RESET']\r\n            email: Email of the user for which the action is performed\r\n            action_code_settings: ``ActionCodeSettings`` object or dict (optional). Defines whether\r\n                the link is to be handled by a mobile app and the additional state information to be\r\n                passed in the deep link, etc.\r\n        Returns:\r\n            link_url: action url to be emailed to the user\r\n\r\n        Raises:\r\n            UnexpectedResponseError: If the backend server responds with an unexpected message\r\n            FirebaseError: If an error occurs while generating the link\r\n            ValueError: If the provided arguments are invalid\r\n        \"\"\"\r\n        payload = {\r\n            'requestType': _auth_utils.validate_action_type(action_type),\r\n            'email': _auth_utils.validate_email(email),\r\n            'returnOobLink': True\r\n        }\r\n\r\n        if action_code_settings:\r\n            payload.update(encode_action_code_settings(action_code_settings))\r\n\r\n        body, http_resp = self._make_request('post', '/accounts:sendOobCode', json=payload)\r\n        if not body or not body.get('oobLink'):\r\n            raise _auth_utils.UnexpectedResponseError(\r\n                'Failed to generate email action link.', http_response=http_resp)\r\n        return body.get('oobLink')\r\n```\r\n\r\n","author":{"url":"https://github.com/evan-hitobito","@type":"Person","name":"evan-hitobito"},"datePublished":"2024-09-24T08:00:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/813/firebase-admin-python/issues/813"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:53fa33eb-99bf-e251-ae73-6efdaf4b85d6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F72:CE233:1F0D4:27D26:698E94F2
html-safe-nonced189731bcb88fc6fa3ef7abdf7f6f07278e300f73df855e14227974ac8a2ba5b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjcyOkNFMjMzOjFGMEQ0OjI3RDI2OjY5OEU5NEYyIiwidmlzaXRvcl9pZCI6IjczMTI1MTg1ODczMDE2NjM5ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4d7bfc9270166a2d7b31964729ba6e4bafe4c8a7e54f80ce4b0d53d4db909657
hovercard-subject-tagissue:2544658388
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/813/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b807f54f9ef0926f584b7c0338ebd9af10f550ab16b2ae44c52b2f0d0fe59936/firebase/firebase-admin-python/issues/813
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b807f54f9ef0926f584b7c0338ebd9af10f550ab16b2ae44c52b2f0d0fe59936/firebase/firebase-admin-python/issues/813
og:image:alt[READ] Step 1: Are you in the right place? For issues related to the code in this repository file a GitHub issue. If the issue pertains to Cloud Firestore, report directly in the Python Firestore G...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameevan-hitobito
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
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
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/firebase/firebase-admin-python/issues/813#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffirebase%2Ffirebase-admin-python%2Fissues%2F813
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffirebase%2Ffirebase-admin-python%2Fissues%2F813
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/firebase/firebase-admin-python/issues/813
Reloadhttps://patch-diff.githubusercontent.com/firebase/firebase-admin-python/issues/813
Reloadhttps://patch-diff.githubusercontent.com/firebase/firebase-admin-python/issues/813
firebase https://patch-diff.githubusercontent.com/firebase
firebase-admin-pythonhttps://patch-diff.githubusercontent.com/firebase/firebase-admin-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Ffirebase%2Ffirebase-admin-python
Fork 347 https://patch-diff.githubusercontent.com/login?return_to=%2Ffirebase%2Ffirebase-admin-python
Star 1.1k https://patch-diff.githubusercontent.com/login?return_to=%2Ffirebase%2Ffirebase-admin-python
Code https://patch-diff.githubusercontent.com/firebase/firebase-admin-python
Issues 79 https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/issues
Pull requests 38 https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/pulls
Actions https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/actions
Projects 0 https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/projects
Security 0 https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/security
Insights https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/pulse
Code https://patch-diff.githubusercontent.com/firebase/firebase-admin-python
Issues https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/issues
Pull requests https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/pulls
Actions https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/actions
Projects https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/projects
Security https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/security
Insights https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/firebase/firebase-admin-python/issues/813
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/firebase/firebase-admin-python/issues/813
UserNotFoundError is not raised as expected. Instead, UnexpectedResponseError is raised.https://patch-diff.githubusercontent.com/firebase/firebase-admin-python/issues/813#top
https://patch-diff.githubusercontent.com/jonathanedey
api: authhttps://github.com/firebase/firebase-admin-python/issues?q=state%3Aopen%20label%3A%22api%3A%20auth%22
https://github.com/evan-hitobito
https://github.com/evan-hitobito
evan-hitobitohttps://github.com/evan-hitobito
on Sep 24, 2024https://github.com/firebase/firebase-admin-python/issues/813#issue-2544658388
Python Firestorehttps://github.com/googleapis/python-firestore
StackOverflowhttp://stackoverflow.com/
firebase-talkhttps://groups.google.com/forum/#!forum/firebase-talk
Firebase support channelhttps://firebase.google.com/support/
jonathanedeyhttps://patch-diff.githubusercontent.com/jonathanedey
api: authhttps://github.com/firebase/firebase-admin-python/issues?q=state%3Aopen%20label%3A%22api%3A%20auth%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.