【发布时间】:2016-10-24 15:59:45
【问题描述】:
我正在尝试将数据上传到我的应用的存储桶,但 var uploadRef = firebase.storage().ref(); 行导致以下错误:
Firebase Storage: No default bucket found. Did you set the 'storageBucket' property when initializing the app?
但是(我认为)我已经通过将聚合物 <firebase-app> 元素放在 index.html 的正文中来初始化应用程序,如下所示:
<firebase-app
api-key="<my-api-key>"
auth-domain="<my-auth-domain>"
database-url="<my-database-url>"
storageBucket="<my-storageBucket-url>">
</firebase-app>
我也在网上尝试了一些解决方案并检查了:
- 我的 App Engine API 已启用
- 我已启用 App Engine 应用
- firebase-storage@system.gserviceaccount.com 是存储分区的所有者
到目前为止,我真的不知道还有什么可以尝试的,希望您能提供任何帮助!
【问题讨论】:
标签: javascript firebase polymer