Saturday, 4 August 2018

Firebase Storage exception and Crashlytics exception does not match?

I'm using Firebase to download files on Android. Here is my code:

try {
    //.. Try to download file from Firebase
} catch(StorageException e) {
    if(e.getErrorCode() == StorageException.ERROR_RETRY_LIMIT_EXCEEDED) {
        //Ignore! Exception has occurred due to no Internet availability
    } else {
        //Other genuine failure, log it
       Crashlytics.logException(e);
    }
}

Now, this code does not send "The operation retry limit has been exceeded." exception. However, in Crashlytics I'm still able to see this exception being reported.

Non-fatal Exception: com.google.firebase.storage.StorageException
The operation retry limit has been exceeded.

Caused by javax.net.ssl.SSLException
Read error: ssl=0x7188e1fe08: I/O error during system call, Software caused connection abort

How is this possible? Am I missing anything?

Firebase version: 16.0.1



from Firebase Storage exception and Crashlytics exception does not match?

No comments:

Post a Comment