What wrong i am doing @firebase storage

415 views
Skip to first unread message

ANSHUL Maheshwari

unread,
Oct 14, 2019, 11:31:42 PM10/14/19
to fireba...@googlegroups.com
I have changed the security to read , auth ==null . 
I am getting file storage reference link exactly same at firebase storage and on App.
But i dont know why This is showing up .


StorageException has occurred.
    User does not have permission to access this object.
     Code: -13021 HttpResult: 403


What mistake i am doing ? Where is the error ?

IMG_20191015_013511_HDR.jpg

ANSHUL Maheshwari

unread,
Oct 15, 2019, 9:49:21 AM10/15/19
to fireba...@googlegroups.com
In detail it's showing


2019-10-15 11:42:57.738 24563-24765/com.anshul5404834.paid E/StorageException: StorageException has occurred.
    User does not have permission to access this object.
     Code: -13021 HttpResult: 403
2019-10-15 11:42:57.739 24563-24765/com.anshul5404834.paid E/StorageException: Could not open resulting stream.
    java.io.IOException: Could not open resulting stream.
        at com.google.firebase.storage.StreamDownloadTask.createDownloadStream(com.google.firebase:firebase-storage@@19.1.0:145)
        at com.google.firebase.storage.StreamDownloadTask.access$000(com.google.firebase:firebase-storage@@19.1.0:36)
        at com.google.firebase.storage.StreamDownloadTask$1.call(com.google.firebase:firebase-storage@@19.1.0:167)
        at com.google.firebase.storage.StreamDownloadTask$1.call(com.google.firebase:firebase-storage@@19.1.0:164)
        at com.google.firebase.storage.StreamDownloadTask$StreamProgressWrapper.ensureStream(com.google.firebase:firebase-storage@@19.1.0:325)
        at com.google.firebase.storage.StreamDownloadTask$StreamProgressWrapper.access$100(com.google.firebase:firebase-storage@@19.1.0:262)
        at com.google.firebase.storage.StreamDownloadTask.run(com.google.firebase:firebase-storage@@19.1.0:175)
        at com.google.firebase.storage.StorageTask.lambda$getRunnable$7(com.google.firebase:firebase-storage@@19.1.0:1072)
        at com.google.firebase.storage.StorageTask$$Lambda$12.run(Unknown Source:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

thribhu kumar

unread,
Oct 15, 2019, 9:49:21 AM10/15/19
to fireba...@googlegroups.com
Hello, 
I think you should refer to firebase rules once again if I am not wrong. Since you didn't specify any replaceable code with the mail, I am not sure what exactly you are trying. 
If you are looking to give read, write permissions to unauthenticated users you can simply do the following 

   match /{userContent=**} {
    allow read, write
    }

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAK%3Dr9t%2BX-Lg1w4C36Yboa9f1nv5Lp1q%3DW7-LEQzJnm8T0URCzw%40mail.gmail.com.

thribhu kumar

unread,
Oct 15, 2019, 1:00:31 PM10/15/19
to fireba...@googlegroups.com
Hello Maheshwari, 
I think you should refer this for better understanding of firebase rules stack overflow

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

ANSHUL Maheshwari

unread,
Oct 17, 2019, 12:16:13 AM10/17/19
to fireba...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages