Firebase:403 PERMISSION_DENIED(FirebaseError:安装):更新SDK(FirebaseInstallationsService)后,请求被阻止 [英] Firebase: 403 PERMISSION_DENIED (FirebaseError: Installations): Requests are blocked, after updating SDKs (FirebaseInstallationsService)

查看:1416
本文介绍了Firebase:403 PERMISSION_DENIED(FirebaseError:安装):更新SDK(FirebaseInstallationsService)后,请求被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了Web应用程序Firebase的Firebase SDK.
自更新以来,我的应用程序不再启动,并引发以下错误:
知道发生了什么吗?

I updated the Firebase SDKs of my Firebase for Web application.
Since the update my application no longer starts and throws the following error:
Any idea what is going on?

未捕获(承诺)
FirebaseError:安装:创建安装请求失败,错误为"403 PERMISSION_DENIED:对此API firebaseinstallations.googleapis.com方法google.firebase.installations.v1.FirebaseInstallationsService.CreateInstallation的请求被阻止." (安装/请求失败).

Uncaught (in promise)
FirebaseError: Installations: Create Installation request failed with error "403 PERMISSION_DENIED: Requests to this API firebaseinstallations.googleapis.com method google.firebase.installations.v1.FirebaseInstallationsService.CreateInstallation are blocked." (installations/request-failed).

推荐答案

事实证明,新版本的Firebase SDK依赖于称为FIS(Firebase安装服务)的新内部基础结构服务来定位标识符("FID"或"实例ID").
如果您对应用程序中使用的API密钥使用API​​密钥限制,则必须扩展这些限制,以允许通过firebaseinstallations.googleapis.com与新的Firebase安装服务一起使用.

It turns out that new versions of Firebase SDKs depend on a new internal infrastructure service, called FIS (the Firebase Installations Service) for targeting identifiers ("FIDs" or "Instance-IDs").
If you are using API key restrictions for the API keys you use in your application, you will have to extend those restrictions to allow usage with the new Firebase Installations Service at firebaseinstallations.googleapis.com.

允许相关的API密钥与新的 Firebase一起使用安装API :

To allow your API key in question to be used with the new Firebase Installations API:

  • 转到 Google云控制台
  • 选择相关项目(即您用于应用程序的项目)
  • 打开菜单,然后转到APIs & Services-> Credentials
  • 点击Edit API key以获得相关的API密钥
  • 向下滚动到API restrictions
  • 从下拉菜单中选择Firebase Installations API
  • 点击Save
  • 等待几分钟,让Google服务器更新并重试...
  • go to the Google Cloud Console
  • choose the relevant project (i.e. the project you use for your application)
  • open the menu and go to APIs & Services -> Credentials
  • click Edit API key for the API key in question
  • scroll down to API restrictions
  • from the dropdown, choose Firebase Installations API
  • click Save
  • wait a couple of minutes for Google servers to update and retry...

注意:如果找不到在API列表中的Firebase安装API 中,您可能首先需要为项目启用 API(为此

Note: If you cannot find the Firebase Installations API in the list of APIs, you might first have to enable the API for your project (to do so click here).

注意:如果不确定在应用程序中使用的是哪个API密钥,则可以检查

Note: If you are not sure which API key is used in your application, you can check the usage numbers of Firebase Installations API per API key.

注意: 验证您的修补程序,方法是检查您是否可以在

Note: Verify your fix by checking if you can see successful 200 requests increasing on the Firebase Installations API request metrics page.

这篇关于Firebase:403 PERMISSION_DENIED(FirebaseError:安装):更新SDK(FirebaseInstallationsService)后,请求被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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