Reputation: 151
I am using stable version of flutter and firebase_auth latest version but it give me error again and again
flutter: PlatformException(ERROR_INTERNAL_ERROR, An internal error has occurred, print and inspect the error details for more information., null)
please help me to solve me this problem . Thanks in advance…..
Upvotes: 15
Views: 14991
Reputation: 19
I am facing the same issue, but solved it when i noticed that the user has been logged in on the same device again
Upvotes: -1
Reputation: 11
I have the same error, in my case with Firebase Phone Auth, and the code didn't sent to some Carrier in my country and shown the same error. You need to add another Auth method for users or try sending OTP by third party service.
Upvotes: 1
Reputation: 1
Try this:
go to https://console.firebase.google.com/
choose your project; click authentication -> get started; choose email and password -> enable;
this worked for me
Upvotes: 0
Reputation: 359
Actually in my case, Flutter Fire was not configuring project correctly through cli. There was a difference in Api keys written in firebase_options.dart file and the Api keys written in google-service.json and GoogleService-Info.plist files for iOS and Android Apps.
Upvotes: 1
Reputation: 6736
If enabling Sign-in methods in Firebase console/Authentication didn't help you make sure your key is not restricted in Google Cloud Platform:
Go to Google Cloud Console.
Open APIs & Services
-> Credentials
tab.
Open your keys Android/iOS/Flutter.
Select "Don't restrict key" or carefully check APIs you want to enable.
Upvotes: 12
Reputation: 440
In my case, I had Blocking Functions that verify users before account creation using beforeCreate(). I actually forgot I had it there and it was blocking all signups.
Wish the error message would be a bit more specific instead of internal error.
Upvotes: 0
Reputation: 717
Don't forget add DynamicLink
the url which added in Sign-in Domain
in Authentication
Upvotes: 0
Reputation: 2205
My issue was that my simulator had cached a user from a different project (I have dev/prod firebase projects)
I had to log out and register again.
Hopefully, this saves someone as much head-scratching as I've just been through.
Upvotes: 4
Reputation: 3506
Do also double-check the values in your GoogleService-Info.plist. I got this same error after using an incorrect API_KEY.
Upvotes: 1
Reputation: 306
make sure your desired method is enabled in the firebase console eg. anonymous sign-in, email/pass sign-in.
Upvotes: 10