Pyrebase
Pyrebase copied to clipboard
error on getUrl() method
my code snippet:
firebase = pyrebase.initialize_app(config)
storage = firebase.storage()
#storage.child("images/example.jpg").put("example2.jpg")
#storage.child("images/example.jpg").download("downloaded.jpg")
storage.child("marketplace-screen-fixed.png").get_url()
runtime error:
Traceback (most recent call last):
File "pyfb.py", line 14, in
Try storage.child("marketplace-screen-fixed.png").get_url(1)
storage.child("PHOTO_PATH").get_url(None) pass null as a token It worked for me
Try without passing any argument storage.child("PHOTO_PATH").get_url() It worked for me