【发布时间】:2021-03-29 15:09:24
【问题描述】:
我正在尝试将 .sav 文件上传到 Firebase 存储。但每次我尝试上传时,都会收到此错误:ValueError: Bucket names must start and end with a number or letter. 我在网上找到的任何教程/问题都没有解决这个问题。
我这样做的方式是:
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = 'credentials.json'
storer = storage.Client()
bucket = storer.get_bucket('gs://project_name.appspot.com/') #I found this on the top of my storage account.
有什么想法吗?
【问题讨论】:
标签: python firebase google-cloud-platform google-cloud-storage