Skip to content Skip to sidebar Skip to footer

An Unknown Error Occured Please Check Http Result Code And Inner Exception For Server Response

This picture is of the upload fragment made by me using android studio and when the list item is been clicked the object should be downloaded.It's Working fine and the object is be

Solution 1:

After 2 days of frustration, I found out that there is a bug in firebase storage.Thus, you've to simply turn off and on your storage manually,thanks.

Solution 2:

May be this is the wrong path bug but in my case resolve this here is the example

i use this code then i received error

publicstaticStorageReferencegetChildProfileStorage(String vid){
    StorageReference storageReference= FirebaseStorage.getInstance().getReference();
    storageReference.child("ParentDataStore").child(CurrentUser.getInstance().getEmail())
            .child("ChildDataStore").child(vid);


    return storageReference;
}

here is the line that solve my problem

publicstaticStorageReferencegetStudentProfileStorage(String vid){
    StorageReference storageReference= FirebaseStorage.getInstance().getReference("ParentDataStore")
            .child("StudentDataStore").child(vid).child("profile");
    return storageReference;
}

Solution 3:

Sorry, I am late. but today I am also facing the same issue. What I've done is to update the storage library in build.Gradle (app) file. and it solved my problem. Basically when you configure storage using Android studio firebase assistant. This will import the older version of the app. So don't to update a newer version

Solution 4:

For me, I was providing invalid system file path while calling getFile() of the FileDownloadTask, I was initially trying to download a file from Firebase.

Here the issued is raised as the downloadDirectory was invalid

FilelocalFile= ...;
FileDownloadTaskdownloadTask= FirebaseStorage.getInstance()
                                               .getReference()
                                               .child("fileName")
                                               .getFile(localFile);

Here the path of the localFile I was providing was invalid.

Solution 5:

After 3-4 hrs depression,i got the actual reason. While downloading,I need to give storage permission of writing but I only gave read permission. In lower androids , read-write permission is same.Basically I was used to/accustomed to these lower version devices that's why forget to add write storage permission for the upper androids

Post a Comment for "An Unknown Error Occured Please Check Http Result Code And Inner Exception For Server Response"