Firebase storage and Invalid HTTP method/URL pair

Viewed 1557

When I try to fetch a firebase storage file using ReactReader, I get the following error:

{
"error": {
"code": 400,
"message": "Invalid HTTP method/URL pair."
}
}

The code is making a request to https://firebasestorage.googleapis.com/v0/b/....

but that returns the error above.

Has anyone run into this issue?

2 Answers

I got the same problem, and it was actually a security feature.

As the security rules show, I shouldn't have access to the data unless I am authenticated.

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}
Related