Pyrebase icon indicating copy to clipboard operation
Pyrebase copied to clipboard

error on getUrl() method

Open shakirmengrani opened this issue 8 years ago • 3 comments

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 storage.child("marketplace-screen-fixed.png").get_url() TypeError: get_url() takes exactly 2 arguments (1 given)

shakirmengrani avatar Jan 24 '17 19:01 shakirmengrani

Try storage.child("marketplace-screen-fixed.png").get_url(1)

LuizQuirino avatar Mar 30 '17 02:03 LuizQuirino

storage.child("PHOTO_PATH").get_url(None) pass null as a token It worked for me

asgaraliyev avatar Oct 22 '20 21:10 asgaraliyev

Try without passing any argument storage.child("PHOTO_PATH").get_url() It worked for me

ektaarora3501 avatar Jan 01 '22 13:01 ektaarora3501