Christophe Le Besnerais
Christophe Le Besnerais

Reputation: 4713

Error 400 "Bad Request. Could not access bucket" when uploading file to Firebase storage

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

Answers (1)

Christophe Le Besnerais
Christophe Le Besnerais

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

Related Questions