Reputation: 4713
I'm trying to upload a file to Firebase storage using the web API, but the server return this error:
{
"error": {
"code": 400,
"message": "Bad Request. Could not access bucket XXXX.appspot.com"
}
}
I have so far:
BTW downloading file works just fine.
Upvotes: 2
Views: 5668
Reputation: 4713
Turns out I was calling the put
method on my storage ref with a non valid path. With a proper file path it works.
Very misleading error message from firebase nevertheless...
Upvotes: 2