Skip to content

com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) #384

Closed

Description

@rahul00845

[REQUIRED] Step 3: Describe the problem

Firebase network exception is showing in craslytics, not able to reproduce this error.

Exception: java.util.concurrent.ExecutionException: com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred.
at com.google.android.gms.tasks.Tasks.zzb(Unknown Source:61)
at com.google.android.gms.tasks.Tasks.await(Unknown Source:23)
at com.xxxx.android.authentication.Firebase.getAuthDetail(SignInActivity.kt:40)
at com.xxx.android.webview.WebViewActivity.getToken(WebViewActivity.kt:1150)
at com.xxx.android.webview.WebAppInterface.getToken(WebAppInterface.kt:320)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:160)
at android.os.HandlerThread.run(HandlerThread.java:65)

Caused by com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred.
at com.google.firebase.auth.api.internal.zzds.zzb(Unknown Source:15)
at com.google.firebase.auth.api.internal.zzew.zza(Unknown Source:11)
at com.google.firebase.auth.api.internal.zzeo.zzc(Unknown Source:33)
at com.google.firebase.auth.api.internal.zzep.onFailure(Unknown Source:49)
at com.google.firebase.auth.api.internal.zzdy.dispatchTransaction(Unknown Source:18)
at com.google.android.gms.internal.firebase_auth.zzb.onTransact(Unknown Source:12)
at android.os.Binder.execTransact(Binder.java:752)

Activity

  1. google-oss-bot commented on Apr 29, 2019

    @google-oss-bot
    Collaborator

    I found a few problems with this issue:

    • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
    • This issue does not seem to follow the issue template. Make sure you provide all the required information.
  2. mistreckless commented on May 14, 2019

    @mistreckless

    Same error. I really have no idea how to fix this. The error occurs most often on Xiaomi devices.
    Approximate steps to reproduce:

    1. Integrate google sign in and firebase auth (https://firebase.google.com/docs/auth/android/google-signin?authuser=0)
    2. Every time app launch get google credentials -> sign in to firebase -> get firebase id token (https://firebase.google.com/docs/auth/admin/verify-id-tokens)
    3. Everything works fine, but in a few weeks this error occurs
      Clear cache, clear data and reinstall app doesn't helps.
      firebase auth version 16.0.4 (the same on 17.0.0)
      play services auth version 16.0.1
  3. candrwow commented on Jul 17, 2019

    @candrwow

    when device login successfully,then don't do anything or power off,after 1 hour(or long time,I think local idToken is out of date),this error will happen.
    my code is:

    firebaseAuth.getCurrentUser().getIdToken(false)
                            .addOnCompleteListener(task -> {...})
    

    but when I change getIdToken(false) to getIdToken(true),this error will not happen.
    my firebase auth version is 16~18.1.0,they all have this error.

  4. hpols commented on Aug 3, 2019

    @hpols

    I've just got this error true. I haven't changed this part of the code for quite a while (somewhere around a month) and it was working before. I revisit it today to go through the full app flow and get this error. I've already checked if google play is running etc. as I first thought perhaps the server is down …

  5. olonge commented on Aug 12, 2019

    @olonge

    Same here.
    I'm getting this error on a Huawei MediaPad.
    However, I am eventually able to log in after repeated attempts.

    PS. I can't rule out a dodgy WiFi connection, though

  6. artths commented on Nov 1, 2019

    @artths

    Also having this.

  7. FibreOptics commented on Dec 13, 2019

    @FibreOptics

    My react app has this after sign in and sign out once OR closing the sign in popup. It seems to be a cool down?!!! Still looking for answers.
    This is where the error was throw from in nexttick.js

    goog.async.throwException = function(exception) {
      // Each throw needs to be in its own context.
      goog.global.setTimeout(function() { throw exception; }, 0);
    };
    
  8. ashwinraghav commented on Jun 9, 2020

    @ashwinraghav
    Contributor

    Thanks for your patience on this.

    • Are you able to share the versions of Firebase Auth you are using?
    • What devices do these occur on?
    • Have you upgraded to newer versions of Auth, since the time of this report and seen the errors go away?
  9. ashwinraghav commented on Jun 26, 2020

    @ashwinraghav
    Contributor

    Closing since the issue seems largely inactive

  10. Ranindu15 commented on Jul 26, 2020

    @Ranindu15

    same issue here. Any solution for this>

  11. locked and limited conversation to collaborators on Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions