[Google Auth] com.google.firebase.FirebaseException: An internal error has occured.

20,723 views
Skip to first unread message

Shadab Ansari

unread,
May 20, 2016, 2:31:56 PM5/20/16
to Firebase Google Group
With the old Firebase API everything was working fine but after I made changes according to the new API, I'm not able to google authenticate.
So Google authorization is working fine but when I'm trying to authenticate the same with Firebase it gives me this exception -


com.google.firebase.FirebaseException: An internal error has occurred.

with no details.

I'm using this piece of code to google authenticate with Firebase.

GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
if (result.isSuccess()) {
// Google Sign In was successful, authenticate with Firebase
GoogleSignInAccount account = result.getSignInAccount();
    AuthCredential credential = GoogleAuthProvider.getCredential(acct.getIdToken(), null);

mAuth.signInWithCredential(credential).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
    @Override
public void onComplete(@NonNull Task<AuthResult> task) {
        if(!task.isSuccessful()){
           //Control reaches here and prints the exception as stated above
           Log.d(Constants.TAG, "onError:: Code : "+ task.getException().toString());
        }

}
});
}

I also matched my code with the Firebase sample code for google authentication and everything is the same.
Please help.


Alex Vainshtein

unread,
May 22, 2016, 11:48:15 AM5/22/16
to Firebase Google Group
 Receiving something similar when trying to authenticate user: com.google.android.gms.tasks.RuntimeExecutionException: com.google.firebase.FirebaseException: An internal error has occured. [ CONFIGURATION_NOT_FOUND ]

Arnold Balliu

unread,
May 22, 2016, 12:39:02 PM5/22/16
to Firebase Google Group
Same here. I am using signInAnonymously()
Full stack trace looks like this:

signInAnonymously
                                                               com.google.firebase.FirebaseException: An internal error has occured. [ OPERATION_NOT_ALLOWED ]
                                                                   at com.google.android.gms.internal.zzacq.zzbN(Unknown Source)
                                                                   at com.google.android.gms.internal.zzacn$zzg.zza(Unknown Source)
                                                                   at com.google.android.gms.internal.zzacy.zzbO(Unknown Source)
                                                                   at com.google.android.gms.internal.zzacy$zza.onFailure(Unknown Source)
                                                                   at com.google.android.gms.internal.zzact$zza.onTransact(Unknown Source)
                                                                   at android.os.Binder.execTransact(Binder.java:453)

Amit Golan

unread,
May 22, 2016, 7:34:31 PM5/22/16
to Firebase Google Group
Had the exact same issue.
I solved my issue by white listing all client IDs as explained in this post:

Darius Lapūnas

unread,
Jun 1, 2016, 10:59:58 AM6/1/16
to Firebase Google Group
This happened to me when I did not have the authentication method enabled in the console. When I enabled Google Auth, got the same exception, just without [ OPERATION_NOT_ALLOWED ]

innovati...@gmail.com

unread,
Jul 5, 2016, 6:25:12 AM7/5/16
to Firebase Google Group
Having same issue. Are you able to solve it?

Maeng Sang Woo

unread,
Aug 25, 2016, 11:01:49 AM8/25/16
to Firebase Google Group
Check Firebase console. 

Check Anonymous option in  Auth menu

2016년 5월 23일 월요일 오전 1시 39분 2초 UTC+9, Arnold Balliu 님의 말:

Anton Kogan

unread,
Sep 3, 2017, 2:19:16 AM9/3/17
to Firebase Google Group
I had the same error with Facebook authentication. 

Go to your firebase condole, than open app settings take google-services.json and refresh it.


пятница, 20 мая 2016 г., 21:31:56 UTC+3 пользователь Shadab Ansari написал:
Reply all
Reply to author
Forward
0 new messages