Firebase 部署功能 - HTTP 错误 403

Firebase deploy functions - HTTP Error 403

尝试部署我的 Firebase Functions 时(切换计算机后)出现错误,无法部署。

Error: HTTP Error: 403, Service Usage API has not been used in project 563584335869 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=563584335869 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

我没有具有该 ID 的项目,并且在项目之间切换,它总是给我完全相同的项目 ID。 link 对我不起作用,但是当我输入我的项目 ID 而不是 563584335869 时,它就起作用了,并且服务使用 API 已启用。

注销并重新登录并没有解决问题,firebase init

有人知道是什么原因造成的吗?

我认为可能与firebase-tools 7.1.0有关。我回到 7.0.2,它工作正常。

sudo npm uninstall firebase-tools

sudo npm i -g firebase-tools@7.0.2

firebaser 在这里

使用 Firebase CLI 版本 7.1.0 部署 Cloud Functions 时确实引入了一个问题。该问题现已在我们的后端服务器上得到修复,您应该不会再遇到此问题。

如果问题仍然存在,reach out to Firebase support 寻求个性化的故障排除帮助。