You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented a feature that allows users to select a photo from the gallery and upload it to Firebase Storage. However, if I switch my phone to airplane mode (no internet) before selecting the photo, my Logcat continuously outputs the following log:
2024-08-26 14:43:03.625 720-862 StorageUtil com.jarvislin.producepricechecker W Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: No AppCheckProvider installed.
2024-08-26 14:43:04.837 720-862 ExponenentialBackoff com.jarvislin.producepricechecker W network unavailable, sleeping.
2024-08-26 14:43:04.848 720-862 StorageUtil com.jarvislin.producepricechecker W Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: No AppCheckProvider installed.
2024-08-26 14:43:06.070 720-862 ExponenentialBackoff com.jarvislin.producepricechecker W network unavailable, sleeping.
2024-08-26 14:43:06.082 720-862 StorageUtil com.jarvislin.producepricechecker W Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: No AppCheckProvider installed.
2024-08-26 14:43:07.230 720-862 ExponenentialBackoff com.jarvislin.producepricechecker W network unavailable, sleeping.
2024-08-26 14:43:07.238 720-862 StorageUtil com.jarvislin.producepricechecker W Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: No AppCheckProvider installed.
...
I expected the addOnFailureListener to be triggered instead.
Steps to reproduce:
Turn off the internet.
Select a photo and upload it.
Relevant Code:
Firebase.storage("my_url")
.apply { maxUploadRetryTimeMillis = 10000 }
.reference.child(path)
.putBytes(bytes)
.addOnSuccessListener { }
.addOnFailureListener { /* This is not triggered */ }
.addOnCanceledListener { }
The text was updated successfully, but these errors were encountered:
Hi @jarvislin, thank you for reaching out. I was able to reproduce the issue. The issue occurs only when using putBytes(). I tried using the putFile() and putStream and the maxUploadRetryTimeMillis is followed accordingly.
Per checking, the putBytes() is using the maxDownloadRetryTimeMillis while the other upload API's is using maxUploadRetryTimeMillis.
[READ] Step 1: Are you in the right place?
Yes
[REQUIRED] Step 2: Describe your environment
com.google.firebase:firebase-storage:21.0.0
[REQUIRED] Step 3: Describe the problem
I implemented a feature that allows users to select a photo from the gallery and upload it to Firebase Storage. However, if I switch my phone to airplane mode (no internet) before selecting the photo, my Logcat continuously outputs the following log:
I expected the addOnFailureListener to be triggered instead.
Steps to reproduce:
Relevant Code:
The text was updated successfully, but these errors were encountered: