Closed
Description
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!