Firebase Storage 10.2.6 -> Could not open resulting stream

后端 未结 1 1189
旧巷少年郎
旧巷少年郎 2021-02-09 19:43

I have and issue with the new Firebase Storage SDK, namely 10.2.6. When I try do download a file I get this error. Previously in the 10.2.1 I had no problem.

I/D         


        
相关标签:
1条回答
  • 2021-02-09 20:22

    I know this has been out for a while, but if anyone gets this, what I did to resolve this issue is just modifying the rule for accessing the item

    service firebase.storage {
      match /b/{bucket}/o {
        match /{allPaths=**} {
          allow read, write;
        }
      }
    }
    

    I think by default it wants the user to be authenticated, but for dev purposes I removed that if statement. You'll find this in the rules tab under the storage section

    0 讨论(0)
提交回复
热议问题