Glide not loading data: Failed to connect or obtain data, status code: -1

Viewed 25

I am using Glide to load the data from Firestore storage. i have 5 images to load. it sometimes loads 1 or 2 of them, but never all of them. i get these warnings in logcat:

/com.example.trello W/Glide: Load failed for https://firebasestorage.googleapis.com/v0/b/trello-7d46e.appspot.com/o/BOARD_IMAGE1662271897994.jpg?alt=media&token=65191dbc-06de-43be-8b01-b1cd69e1e1e3 with size [165x165]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
    There was 1 root cause:
    com.bumptech.glide.load.HttpException(Failed to connect or obtain data, status code: -1)
     call GlideException#logRootCauses(String) for more detail
      Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE
    There was 1 root cause:
    com.bumptech.glide.load.HttpException(Failed to connect or obtain data, status code: -1)
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed
    There was 1 root cause:
    com.bumptech.glide.load.HttpException(Failed to connect or obtain data, status code: -1)
     call GlideException#logRootCauses(String) for more detail

i searched all over the internet, but apart from few github issues, couldn't find anything.

0 Answers
Related