opentrace-community / opentrace-android

OpenTrace Android app. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
577 stars 225 forks source link

Storage Exception while uploading data #38

Closed vishaljoseph closed 4 years ago

vishaljoseph commented 4 years ago

I'm getting the following exception inspite of getUploadToken running successfully.

E/StorageException: StorageException has occurred. User does not have permission to access this object. Code: -13021 HttpResult: 403 E/StorageException: The server has terminated the upload session

What am I missing?

alexissinglaire commented 4 years ago

@vishaljoseph : did you configure the upload bucket name inside the gradle.properties (STAGING_FIREBASE_UPLOAD_BUCKET)? The name must match with the bucket name you define in firebase storage .

And the rules/permission setup for the bucket must be define similar to the documentation given .

vishaljoseph commented 4 years ago

Hi, yes I changed that afterwards but it still doesn't seem to be working. Do I need to reconnect my app with the project or something like that?

vishaljoseph commented 4 years ago

It's working now. Thanks!

A related query was if a 'users' collection is supposed to get created in the database or this is something I should do?