Getting 'User does not have Permission to access this object. Code: -13021 HttpResult: 403' error.

2,416 views
Skip to first unread message

Hammad Nasir

unread,
Jun 15, 2016, 12:13:51 AM6/15/16
to Firebase Google Group

I am trying to download some images from FirebaseStorage.


Though I am authenticating user through google, I'm still getting this error:

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

when trying to download the images.


Here's the rules:

service firebase.storage {
  match /b/appname-e3a12.appspot.com/o {
    match /{allPaths=**} {
      allow read, write;
    }
  }
}

Please let me know what's wrong here.


Mike Mcdonald

unread,
Jun 15, 2016, 2:17:38 PM6/15/16
to Firebase Google Group
Hammad,

Sorry you're having difficulty, would you mind posting the code that you're using to make this request?

Thanks,
--Mike

Benjamin Wulfe

unread,
Jun 15, 2016, 2:30:39 PM6/15/16
to Firebase Google Group
Hi Hammad,  I can think of two things that might help you with this:

1.  There is a delay of up to 5 minutes when rules are changed before they take effect.  Unfortunately we are still working on giving good feedback about when changes become live.  But if you had just changed your rules to be public, try again after 5 minutes.

2. If your object was already in your bucket before you signed up for Firebase, it could be that Firebase does not have access to the object.  You can get more information about the error by looking at StorageException.getCause().  The message of this exception should have detailed information from the server that will better identify the root cause.
Reply all
Reply to author
Forward
0 new messages