Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getRecaptchaConfig 'not implemented' error in Firebase Emulator despite isAppVerificationDisabledForTesting #14242

Open
slightair opened this issue Dec 11, 2024 · 2 comments

Comments

@slightair
Copy link

Description

When connecting to a server running on Firebase Emulator from an app using the SDK, the following error occurs during phone number authentication attempt.
This happens when calling PhoneAuthProvider.provider().verifyPhoneNumber(...).

Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information., NSUnderlyingError=0x600000d724f0 {Error Domain=FIRAuthInternalErrorDomain Code=3 "(null)" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={
    code = 501;
    errors =     (
                {
            message = "identitytoolkit.getRecaptchaConfig is not implemented in the Auth Emulator.";
            reason = unimplemented;
        }
    );
    message = "identitytoolkit.getRecaptchaConfig is not implemented in the Auth Emulator.";
    status = "NOT_IMPLEMENTED";
}, NSUnderlyingError=0x600000e650e0 {Error Domain=com.google.HTTPStatus Code=501 "(null)" UserInfo={data={length = 334, bytes = 0x7b0a2020 22657272 6f72223a 207b0a20 ... 44220a20 207d0a7d }, data_content_type=application/json; charset=utf-8}}}}}

Following the documentation, I set isAppVerificationDisabledForTesting to true to skip reCAPTCHA, but the situation remained unchanged.
https://firebase.google.com/docs/auth/ios/phone-auth#integration-testing

Reproducing the issue

  • Connect to Firebase Emulator from an SDK-integrated app
  • Auth.auth().settings?.isAppVerificationDisabledForTesting = true
  • Attempt phone number authentication PhoneAuthProvider.provider().verifyPhoneNumber(...)
  • Error occurs (Internal error, in description)
  • Unable to skip reCAPTCHA

Not present in SDK versions before 11.6

Firebase SDK Version

11.6

Xcode Version

16.0

Installation Method

Swift Package Manager

Firebase Product(s)

Authentication

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
    {
      "identity" : "firebase-ios-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/firebase-ios-sdk",
      "state" : {
        "revision" : "2e02253fd1ce99145bcbf1bb367ccf61bd0ca46b",
        "version" : "11.6.0"
      }
    },

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@russellwheatley
Copy link
Member

hi 👋 ,FlutterFire maintainer here. We have two e2e tests that are now failing after bumping the firebase-ios-sdk to 11.6.0. See PR: firebase/flutterfire#16858

Both underlying exceptions have this message:
"identitytoolkit.getRecaptchaConfig is not implemented in the Auth Emulator."

@paulb777 paulb777 added this to the 11.7.0 - M158 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants