Flutterfire: [firebase_auth] <Exception has occurred. PlatformException (PlatformException(FirebaseException, An internal error has occurred. [ 7: ], null)) FLUTTER>

Created on 10 Oct 2019  Â·  10Comments  Â·  Source: FirebaseExtended/flutterfire

Hey all,

I have a flutter app with Flutter v1.10.14 that points to Firebase and I'm on the master channel.
Absolutely NOTHING has changed in my code or my Firebase setup.
All I did was got a Flutter Upgrade notice in Visual Studio and I did that.

Now every time I go to log into my app with credentials that definitely work I get the following:

Firebase Exception: "An internal error has occurred. [ 7: ]"

Here is the code being called, nothing is null, this has just suddenly started happening out of nowhere:

@override
Future signInWithEmailAndPassword(
String email, String password) async {
final AuthResult result = await _firebaseAuth.signInWithEmailAndPassword(
email: email, password: password);
return result.user;
}

I'd really appreciate your help. There are no issues when flutter doctor is run.

bug

Most helpful comment

I having the same issue before. And I found that this issue occurred because there is no internet connection for my phone.

All 10 comments

A little more input:

  • I'm using a device (Android) that has been logging in just fine all day: Can't log in for some reason

    • Works fine on Android emulator

Also this:

E/FirebaseInstanceId( 3674): Token retrieval failed: SERVICE_NOT_AVAILABLE
W/BiChannelGoogleApi( 3674): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak@4b2e98a
E/flutter ( 3674): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(FirebaseException, An internal error has occurred. [ 7: ], null)

This seemed to be associated with the firewall settings in my apartment. Sorry to waste your time if you're reading this!

This seemed to be associated with the firewall settings in my apartment. Sorry to waste your time if you're reading this!

Hey, I believe I am having the same problem. How did you fix your issue with your firewall? Thanks in advance!

Same problem here!

W/FirebaseMessagingPlugin( 6616): getToken, error fetching instanceID:
W/FirebaseMessagingPlugin( 6616): java.io.IOException: SERVICE_NOT_AVAILABLE
W/FirebaseMessagingPlugin( 6616):   at com.google.firebase.iid.zzl.zza(com.google.firebase:firebase-iid@@20.0.0:67)
W/FirebaseMessagingPlugin( 6616):   at com.google.firebase.iid.zzl.zza(com.google.firebase:firebase-iid@@20.0.0:80)
W/FirebaseMessagingPlugin( 6616):   at com.google.firebase.iid.zzp.then(com.google.firebase:firebase-iid@@20.0.0:4)
W/FirebaseMessagingPlugin( 6616):   at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
W/FirebaseMessagingPlugin( 6616):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/FirebaseMessagingPlugin( 6616):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/FirebaseMessagingPlugin( 6616):   at java.lang.Thread.run(Thread.java:919)
W/FirebasePerformance( 6616): Trace 'performance_to_working_view' is started but not stopped when it is destructed!
I/flutter ( 6616): Error caught by Crashlytics plugin <recordError>:
I/flutter ( 6616): PlatformException(FirebaseException, An internal error has occurred. [ 7: ], null)
I/flutter ( 6616):
I/flutter ( 6616): #0      StandardMethodCodec.decodeEnvelope 
package:flutter/…/services/message_codecs.dart:569
I/flutter ( 6616): #1      MethodChannel.invokeMethod 
package:flutter/…/services/platform_channel.dart:316
I/flutter ( 6616): <asynchronous suspension>
I/flutter ( 6616): #2      MethodChannel.invokeMapMethod 
package:flutter/…/services/platform_channel.dart:344
I/flutter ( 6616): <asynchronous suspension>
I/flutter ( 6616): #3      FirebaseAuth.signInAnonymously 
package:firebase_auth/src/firebase_auth.dart:76
I/flutter ( 6616): <asynchronous suspension>
I/flutter ( 6616): #4      LoginHandler.signInAnonymous 
package:Depts/…/modules/loginHandler.dart:86
I/flutter ( 6616): <asynchronous suspension>
I/flutter ( 6616): #5      LoginHandler.signIn 
package:Depts/…/modules/loginHandler.dart:80
I/flutter ( 6616): <asynchronous suspension>
I/flutter ( 6616): #6      LoginHandler.getOwnUserDocument 
package:Depts/…/modules/loginHandler.dart:91
I/flutter ( 6616): <asynchronous suspension>
I/flutter ( 6616): #7      MyAppState.initState 
package:Depts/main.dart:105
I/flutter ( 6616): #8      StatefulElement._firstBuild 
package:flutter/…/widgets/framework.dart:4068
I/flutter ( 6616): #9      ComponentElement.mount (package:flutter/src/widge

Flutter doctor:

Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [Version 10.0.18362.418], locale de-DE)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.40.0)
[√] Connected device (1 available)

• No issues found!

I having the same issue before. And I found that this issue occurred because there is no internet connection for my phone.

Having exactly same issue while testing on emulator:
PlatformException(FirebaseException, An internal error has occurred. [ 7: ], null).
Any suggested solution?

I have also encountered this problem several times but the solution that has been working for me was either to restart my emulator or recheck on my internet connectivity

Having exactly same issue while testing on emulator:
PlatformException(FirebaseException, An internal error has occurred. [ 7: ], null).
Any suggested solution?

My wifi firewall stopping my internet from working on my emulator. That was what helped me!

check your internet connection, maybe switched off.

In my case I hadn't enabled Anonymous Sign-in Method in the Firebase Console

Was this page helpful?
0 / 5 - 0 ratings