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

Crash without internet connection #164

Closed
Fax3D opened this issue Jun 3, 2016 · 7 comments
Closed

Crash without internet connection #164

Fax3D opened this issue Jun 3, 2016 · 7 comments

Comments

@Fax3D
Copy link

Fax3D commented Jun 3, 2016

If i start ui auth flow intent without an internet connection, i can see the account picker but when i tap on my account i got this crash:

com.google.android.gms.tasks.RuntimeExecutionException: com.google.firebase.FirebaseException: An internal error has occured. [ Internal error. ]
at com.google.android.gms.tasks.zzh.getResult(Unknown Source)
at com.firebase.ui.auth.ui.AcquireEmailHelper$1.onComplete(AcquireEmailHelper.java:57)
at com.google.android.gms.tasks.zzc$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Caused by: com.google.firebase.FirebaseException: An internal error has occured. [ Internal error. ]
at com.google.android.gms.internal.zzacq.zzbN(Unknown Source)
at com.google.android.gms.internal.zzacn$zzg.zza(Unknown Source)
at com.google.android.gms.internal.zzacy.zzbO(Unknown Source)
at com.google.android.gms.internal.zzacy$zza.onFailure(Unknown Source)
at com.google.android.gms.internal.zzact$zza.onTransact(Unknown Source)
at android.os.Binder.execTransact(Binder.java:446)

@iainmcgin
Copy link
Contributor

Hey,

This issue is already fixed for the next release of Firebase Auth; the library will correctly throw a network error in this case. We'll need to test that we're handling this new exception in FirebaseUI appropriately, so I'll leave this open until we confirm it's fixed when the new version lands.

@kz
Copy link

kz commented Jul 12, 2016

@iainmcgin Has the new version you mentioned been released yet?

I tested the authentication flow without a network connection and received the following:

07-12 15:49:26.080 9698-9698/in.iamkelv.golink W/AcquireEmailHelper: Error fetching providers for email
                                                                     com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred.
                                                                         at com.google.android.gms.internal.zzafg.zzes(Unknown Source)
                                                                         at com.google.android.gms.internal.zzafd$zzg.zza(Unknown Source)
                                                                         at com.google.android.gms.internal.zzafo.zzet(Unknown Source)
                                                                         at com.google.android.gms.internal.zzafo$zza.onFailure(Unknown Source)
                                                                         at com.google.android.gms.internal.zzafj$zza.onTransact(Unknown Source)
                                                                         at android.os.Binder.execTransact(Binder.java:453)

Is there a way I can neatly handle com.google.firebase.FirebaseNetworkException? It would be good to let the user know that the connection failed.

@samtstern
Copy link
Contributor

@kz I just released version 0.4.3, I am not exactly sure which commit Iain was referencing but can you check if your issue was fixed?

@kz
Copy link

kz commented Jul 19, 2016

@samtstern Thanks for your reply. Unfortunately, I have decided to go with FirebaseJS in an Ionic app instead. If I do get this error again while using Firebase for Android in the future, I will be sure to let you know.

@samtstern
Copy link
Contributor

@kz good luck with Ionic! Closing this issue for now, if someone else has the same problem they can open a fresh issue.

@ulohani90
Copy link

Still facing this issue on Android 5.0 . Updated firebase core to 10.0.1.

@katie1006
Copy link

Got this crash using firebase-auth 15.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants