Android Firebase Google SIgnon Bad Request

Google Android Firebase logs an authorization error when returning google goken id. I have both cleint id and web sdk key stored on firebase. Even the json file.

 AuthCredential credential = GoogleAuthProvider.getCredential(acct.getIdToken(), null);
        mAuth.signInWithCredential(credential)
                .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
                    @Override
                    public void onComplete(@NonNull Task<AuthResult> task) {
                        Log.d(TAG, "signInWithCredential:onComplete:" + task.isSuccessful());

                        // If sign in fails, display a message to the user. If sign in succeeds
                        // the auth state listener will be notified and logic to handle the
                        // signed in user can be handled in the listener.
                        if (!task.isSuccessful()) {
                            Log.w(TAG, "signInWithCredential", task.getException());
                            Toast.makeText(OnBoarding.this, "Authentication failed.",
                                    Toast.LENGTH_SHORT).show();
                        }
                        // ...
                    }
                });

Received this error

com.google.firebase.FirebaseException: An internal error has occured. [ Bad Request ]
                                                                          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:565)

Despite the fact that google signIn went well, something is missing in firebase, which could not find the needed help

Magazines

"error": {
    "errors": [{
        "domain": "usageLimits",
        "reason": "keyExpired",
        "message": "Bad Request"
    }],
    "code": 400,
    "message": "Bad Request"
}

                                                   }
+4
source share
2 answers

In the firebase console (overview). In the "Mobile applications" section, click the overflow button (three vertical dots) and go to "Management".

Once you get your application and download google-services.json

, /app.

. , - - .

, .

+7

[Bad Request].

:

API REST Firebase .

1) 404 : , HTTP HTTPS

2) 400 : PUT POST

3) 400 : PUT POST

4) 400 . PUT POST

5) 417 : API REST, Firebase

6) 400 Bad Request: API REST,

7) 403 : , Firebase

, .

, .

0

All Articles