Firebase存储无法连接,请重试 [英] Firebase Storage Can't Connect, Retry again

查看:118
本文介绍了Firebase存储无法连接,请重试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

加入后,我将一个旧项目导入了Firebase.

I imported an old project into Firebase when I joined.

https://console.firebase.google.com/project上/project-name/overview 页上,当我尝试获取代码片段以初始化Firebase时,存储桶显示为空URL.

On the https://console.firebase.google.com/project/project-name/overview page, when I try to grab the code snippet to initialize my Firebase, the storage bucket shows up with empty URL.

今天,我这次使用Firebase控制台启动了一个新项目.创建项目后,StorageBucket URL会自动显示在初始化代码段中.

Today, I started a new project, this time, using the Firebase console. After creating the project, the StorageBucket URL showed up in the initialization code snippet automatically.

当我检查两个项目的存储规则时,我看到指向正确位置的URL,但是,导入的项目在存储">文件"选项卡下给出了此错误:

When I check both project's storage rules, I see the URL pointing to the right places, however, the imported project gives this error under the Storage > Files tab:

从第一天开始,我就导入了该项目.

It has been like this since day one I imported the project.

当我去 https://console.cloud.google.com/storage/browser 看看我创建的新项目是否可以显示.

When I went to https://console.cloud.google.com/storage/browser to see if the new project I created would show, it did.

我是否需要采取其他步骤来获取要显示的已导入项目的存储桶URL?

Are there any extra steps on my part to get the storage bucket URL to show for the imported project?

推荐答案

此答案适用于谁?

如果您将项目导入Firebase,并且Firebase Storage特有上述问题.

If you imported your project into Firebase and having the above issue specifically with your Firebase Storage.

在获得Firebase支持后,如果您遇到与我的相似的问题,可以尝试以下方法.我正在尝试重播Firebase支持人员给出的对话和步骤

After back and forth with Firebase Support, if you're facing similar problems as mine, here's the approach you can try. I'm trying to replay the conversation and steps given by the Firebase Support

  • 确保您是所访问项目的所有者.
  • 如果您已登录多个Google帐户,则Firebase数据库将无法 似乎已连接到服务器.登录到隐身模式
  • 检查您的API管理器是否启用了以下功能
  • a)App Engine管理员API
  • b)Firebase Rules API
  • c)Google云存储
  • 检查是否已启用 https://console.developers. google.com/project/_/appengine
  • 转到Firebase Storage AppManager选项卡 https://console.cloud.google.com/storage/
  • a)将服务帐户firebase-storage@system.gserviceaccount.com添加为存储桶.appspot.com上的所有者.
  • b)另外,您需要编辑对象默认权限"以允许类似的访问.
  • Make sure that you are the owner of the project you are accessing.
  • If you have multiple Google accounts signed in, Firebase Database can't seem to connect to the server. Sign into incognito mode
  • Check in your API Manager if the following are enabled
  • a) App Engine admin API
  • b) Firebase Rules API
  • c) Google Cloud Storage
  • Check if you have an App Engine app is enabled https://console.developers.google.com/project/_/appengine
  • Go to Firebase Storage AppManager tab https://console.cloud.google.com/storage/
  • a) Add the service account firebase-storage@system.gserviceaccount.com as an owner on the storage bucket: .appspot.com.
  • b) Additionally, you need to edit the "object default permissions" to allow for similar access.

现在,如果您具备以上所有条件,则下一步是这样:

Now, if you have all the above in place, next step is this:

添加新的服务器凭据

凭据页面中,(

  • 点击创建凭据,选择API密钥
  • 选择服务器密钥
  • 将名称输入服务器密钥(由Google Service自动创建)"
  • 在撰写本文时,创建服务器密钥才是使它起作用的方法.

    At the time of writing this, creating the Server Key was what got it to work.

    几句话:

    在同一浏览器中登录两个帐户时无法正确使用Firebase的问题不再困扰我.登录两个帐户,两个Firebase项目都已启动并运行,没有任何问题.

    The issue of not able to use Firebase properly when two accounts are logged in the same browser doesn't plague me anymore. Logged into two accounts, and both Firebase projects are up and running without any issue.

    这篇关于Firebase存储无法连接,请重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆