You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For issues related to the code in this repository file a Github issue.
If the issue pertains to Cloud Firestore, read the instructions in the "Firestore issue"
template.
For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized Firebase support channel.
[REQUIRED] Step 2: Describe your environment
Operating System version: Mac OSX 11.4
Firebase SDK version: 9.2.0
Firebase Product: Auth
Node.js version: v14.15.4
NPM version: 6.14.10
[REQUIRED] Step 3: Describe the problem
Running a firebase function on emulators, using the Admin SDK to generate a password reset email calling await admin.auth().generatePasswordResetLink(email, actionCodeSettings) the error returned when the email address doesn't match any users in the database causes an internal ('auth/internal-error') error rather than returning the expected 'auth/user-not-found'.
Steps to reproduce:
Trigger a function running using the emulator, that generates the password reset link for an account that doesn't exist.
Relevant Code:
Console logs when the error is reported:
> FirebaseAuthError: An internal error has occurred. Raw server response: "{"error":{"code":400,"message":"EMAIL_NOT_FOUND","errors":[{"message":"EMAIL_NOT_FOUND","reason":"invalid","domain":"global"}]}}"
> at FirebaseAuthError.FirebaseError [as constructor] (/Users/wtpalexander/APPSTRM Dev/Progression/Firebase/functions/node_modules/firebase-admin/lib/utils/error.js:44:28)
> at FirebaseAuthError.PrefixedFirebaseError [as constructor] (/Users/wtpalexander/APPSTRM Dev/Progression/Firebase/functions/node_modules/firebase-admin/lib/utils/error.js:90:28)
> at new FirebaseAuthError (/Users/wtpalexander/APPSTRM Dev/Progression/Firebase/functions/node_modules/firebase-admin/lib/utils/error.js:149:16)
> at Function.FirebaseAuthError.fromServerError (/Users/wtpalexander/APPSTRM Dev/Progression/Firebase/functions/node_modules/firebase-admin/lib/utils/error.js:188:16)
> at /Users/wtpalexander/APPSTRM Dev/Progression/Firebase/functions/node_modules/firebase-admin/lib/auth/auth-api-request.js:1526:49
> at processTicksAndRejections (internal/process/task_queues.js:97:5)
> at async /Users/wtpalexander/APPSTRM Dev/Progression/Firebase/functions/user-management.js:72:26
> at async func (/Users/wtpalexander/APPSTRM Dev/Progression/Firebase/functions/node_modules/firebase-functions/lib/providers/https.js:273:26) {
> errorInfo: {
> code: 'auth/internal-error',
> message: 'An internal error has occurred. Raw server response: "{"error":{"code":400,"message":"EMAIL_NOT_FOUND","errors":[{"message":"EMAIL_NOT_FOUND","reason":"invalid","domain":"global"}]}}"'
> },
> codePrefix: 'auth'
> }
The text was updated successfully, but these errors were encountered:
[READ] Step 1: Are you in the right place?
template.
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Running a firebase function on emulators, using the Admin SDK to generate a password reset email calling
await admin.auth().generatePasswordResetLink(email, actionCodeSettings)
the error returned when the email address doesn't match any users in the database causes an internal ('auth/internal-error') error rather than returning the expected 'auth/user-not-found'.Steps to reproduce:
Trigger a function running using the emulator, that generates the password reset link for an account that doesn't exist.
Relevant Code:
Console logs when the error is reported:
The text was updated successfully, but these errors were encountered: