quickstart-unity: Firebase.Storage.StorageException: An unknown error occurred

Hello, I am getting this error when I tried to download a file from firebase storage.

Firebase.Storage.StorageException: An unknown error occurred, please check the HTTP result code and inner exception for server response. ---> System.IO.IOException: Could not open resulting stream.
  at Firebase.Storage.StreamDownloadTask.CreateDownloadStream () [0x00000] in <filename unknown>:0 
  at Firebase.Storage.StreamDownloadTask+Callable160.Call () [0x00000] in <filename unknown>:0 
  at Firebase.Storage.StreamDownloadTask+StreamProgressWrapper.CheckStream () [0x00000] in <filename unknown>:0 

The file was downloaded fine when it was under the root reference. But this error happened when I put it under a sub folder. I have also added the read/ write rule like this:

match /path { allow read, write; }

I am able to reproduce this error using the sample app. Can you help with this? Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Hi Kobe, I’ve confirmed this is a bug. It is partly due to an issue with Firebase Storage and partly due to a bug in Unity3d. The fix on the Firebase side is queued and you should see it in the next release. However, the behavior will not be fixed until Unity 5.6 which is currently in beta and fixes a bug in how http urls are handled. Thanks for taking the time to report this.