首页 > 解决方案 > 电话身份验证验证无法验证并引发此错误

问题描述

收到此错误,我无法判断 firbase 内部的此错误是什么,我无法判断问题是什么,到目前为止,我可以从 firebase 自己或遇到的任何人那里得知

@Override
public void onVerificationFailed(FirebaseException e) {
    // This callback is invoked in an invalid request for verification is made,
    // for instance if the the phone number format is not valid.
    Log.w(TAG, "onVerificationFailed", e);
    // [START_EXCLUDE silent]
    mVerificationInProgress = false;
    // [END_EXCLUDE]

    if (e instanceof FirebaseAuthInvalidCredentialsException) {
        // Invalid request
        // [START_EXCLUDE]
        mPhoneNumberField.setError("Namba Ya Simu Si Sahihi.");
        // [END_EXCLUDE]
    } else if (e instanceof FirebaseTooManyRequestsException) {
        // The SMS quota for the project has been exceeded
        // [START_EXCLUDE]
        Snackbar.make(findViewById(android.R.id.content), "Quota exceeded.",
                Snackbar.LENGTH_SHORT).show();
        // [END_EXCLUDE]
    }

    // Show a message and update the UI
    // [START_EXCLUDE]
    updateUI(STATE_VERIFY_FAILED);
    // [END_EXCLUDE]
}

W/VerifyPhoneCustomer:onVerificationFailed com.google.firebase.FirebaseException:发生内部错误。[ 7: ] 在 com.google.firebase.auth.api.internal 的 com.google.firebase.auth.api.internal.zzdv.zza(com.google.firebase:firebase-auth@@19.2.0:18) .zzex.zza(com.google.firebase:firebase-auth@@19.2.0:3) 在 com.google.firebase.auth.api.internal.zzfa.run(com.google.firebase:firebase-auth@@ 19.2.0:4) 在 android.os.Handler.handleCallback(Handler.java:873) 在 android.os.Handler.dispatchMessage(Handler.java:99) 在 android.os.Looper.loop(Looper.java:214 ) 在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:

标签: javaandroidfirebase-authentication

解决方案


推荐阅读