Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Storage "error sending network request GET"

I have this problem with Firebase Storage where Glide can't load images to ImageViews.

Looking at the logcat, I get a continuous stream of:

W/ExponenentialBackoff: network unavailable, sleeping.
W/NetworkRequest: error sending network request GET

these are my firebase dependencies :

implementation 'com.firebaseui:firebase-ui-storage:3.3.0'
implementation 'com.google.firebase:firebase-storage:19.2.0'
implementation 'com.google.firebase:firebase-auth:19.4.0'
implementation 'com.google.firebase:firebase-firestore:21.7.1'
implementation "com.google.android.gms:play-services-auth:18.1.0"

this is the code for glide:

StorageReference generage_ref(String uid, String image_name){
        FirebaseStorage storage = FirebaseStorage.getInstance();
        StorageReference storage_ref = storage.getReference();
        return storage_ref.child(uid+"/"+image_name+".jpg");
    }

void load_round(Context context, StorageReference storageReference, ImageView imageView){
        GlideApp.with(context)
            .load(storageReference)
            .circleCrop()
            .into(imageView);
    }

which I would call as:

load_round(context,
           generate_ref("some_uid", "some_image_name"),
           imageview)

I tried running my working backup code from ten days ago but I get the same error which was not present back then..

Funny thing is, when I opened my VPN, All the images load just fine. I hope someone can help cause I am truly lost now.

like image 630
Riven Avatar asked Jul 19 '26 05:07

Riven


1 Answers

This is for those who will encounter the same problem in the future..

I have encountered this problem before and had a conversation through email with google support. You can fix this problem by changing your network provider or by using VPN. This has nothing to do with your code and the error will be gone in like a week or so.

like image 156
Curiousity Avatar answered Jul 20 '26 19:07

Curiousity