I have a file stored in the following folder of my Firebase Cloud Storage:
/logs/2021/03/2021-03-22.json
And I'm trying to access it through a download URL.
This does not work:
https://firebasestorage.googleapis.com/v0/b/PROJECT_ID.appspot.com/o/logs/2021/03/2021-03-22.json?alt=media
I get this error when I try to open the file with the URL above:
{
"error": {
"code": 400,
"message": "Invalid HTTP method/URL pair."
}
}
But the following URL works fine (when the slashes from the folder path are encoded as %2F), and I get the contents of the file as expected.
https://firebasestorage.googleapis.com/v0/b/PROJECT_ID.appspot.com/o/logs%2F2021%2F03%2F2021-03-22.json?alt=media
Why is that? Will I always need to encode the slashes from the bucket's folder levels as %2F ?