com.google.firebase.FirebaseException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ]
Solution 1
Have you checked the project_id
in your Android app google-services.json
file is the same as the Firebase project for which you enabled Google Sign In Authentication? If that is the case and you have not edited the google-services.json file, you can file a support ticket to Firebase.
Solution 2
Check if you enabled the authentication type you want in the firebase console.
Solution 3
Enabling Sign-in method (email/password in my case) in Firebase project dashboard fixed the issue for me.
Solution 4
just head to your project settings in firebase and enable email/password auth
Solution 5
This happened to me in an Android emulator on my Mac M1 developing an app in Flutter, what happened was that the date and time on my Android Emulator was completely out. A cold boot reset the date and time and the Firebase exception issue was solved.
Related videos on Youtube
parohy
Updated on February 08, 2022Comments
-
parohy over 2 years
Ok so I get the following exception. No idea why it is happening. I have followed the guides how to set up auth for google account. I tried to search the google but no success of any solution for this. I haved tried to search for the
CONFIGURATION_NOT_FOUND
but I could not find it in the firebase docs. I don't know what configuration he can't find. Exception is basically useless. Signing in trough firebase is going great until authenticating it with firebase:private void authenticateGoogleAccount(GoogleSignInAccount account) { AuthCredential credential = GoogleAuthProvider.getCredential(account.getIdToken(), null); mAuth.signInWithCredential(credential) .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if (!task.isSuccessful()) { Log.w(TAG, "signInWithCredential", task.getException()); Toast.makeText(MainActivity.this, "Authentication failed.", Toast.LENGTH_SHORT).show(); } else { Log.d(TAG, "signInWithCredential"); } } }); }
Google sign-in-method is enabled in the firebase console. yes I have found a duplicate of this answer but has 0 answers and one unanswered comment 5 months ago.
-
parohy over 7 yearsWow. This is a great answer. I had a different ID than project ID in console. Hope it will work now. Will update
-
parohy over 7 yearsThank you. I have re-downloaded the
play-services.json
and it worked. Finally! -
Lahiru Chandima over 3 yearsI was using
signInWithCustomToken()
, and just visiting the authentication page in firebase console and pressing on "Get Started" button was sufficient for me. -
Nimrod Dolev over 3 years@LahiruChandima - nice!
-
DanV almost 3 yearsSame. There's goes 2 hours of my day 🙄
-
pondermatic almost 3 yearsNo mention of this in the google docs. Thanks google!
-
Chong Kah Fai over 2 yearsI have same issue and cold boot on M1 android is working! thanks a lot.