thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 526 forks source link

404 Not Found Error On delete() method - Storage #308

Open Nv7-GitHub opened 4 years ago

Nv7-GitHub commented 4 years ago

I can confirm I have a file at /Nv7/test/image1.jpe/, I can see it in firebase. But, when I run the code:

storage.child('Nv7').child('test').delete('image1.jpe') 
storage.child('Nv7').child('test').child('image1.jpe').delete('image1.jpe')  # I have also tried this, same result

I get

gcloud.exceptions.NotFound: 404 No such object: <project-name>/image1.jpe (DELETE https://www.googleapis.com/storage/v1/b/<project-name>.appspot.com/o/image1.jpe)

What can I do to fix this? I am very disappointed at the lack of documentation on the delete() method. Still, thank you for the help.