Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.google.firebase.FirebaseException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ]

Tags:

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.

like image 995
parohy Avatar asked Dec 13 '16 14:12

parohy


Video Answer


2 Answers

Check if you enabled the authentication type you want in the firebase console.

enter image description here

like image 74
Aman Avatar answered Oct 11 '22 08:10

Aman


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.

like image 32
Jin Liu Avatar answered Oct 11 '22 08:10

Jin Liu