Recently while working with the delete feature in pyrebase in added the service account which enabled the credentials in Storage object.
Therefore the upload was being established but i got this error ; TypeError: 'NoneType' object is not subscriptable
where metadata was not being returned since its used the blob.upload_from_file(file_obj) return None
Recently while working with the delete feature in pyrebase in added the service account which enabled the credentials in Storage object.
Therefore the upload was being established but i got this error ; TypeError: 'NoneType' object is not subscriptable where metadata was not being returned since its used the
blob.upload_from_file(file_obj)
return NoneMoving this code :+1:
inside the else statement located in the
elif self.credentials
made it to return the metadata pretty well when uploading a file objectCheck it out if possible merge it . It really helped me out