首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Firebase错误:“身份验证密钥未激活”

Firebase错误:“身份验证密钥未激活”
EN

Stack Overflow用户
提问于 2019-03-27 05:10:32
回答 1查看 43关注 0票数 0

一周后的今天,我的代码在Firebase Cloud Functions上运行良好。

我已经尝试了许多解决方案来调试这个问题,但每次我的代码被激活时都会遇到这个问题:

代码语言:javascript
复制
{"errors":[{"code":20,"message":"Authentification key is not active"}
{"code":21,"message":"No permission for this authentication key"}]}

一种解决方案已将此错误代码更改为另一种:

代码语言:javascript
复制
{"error":{"code":403,"message":"Identity Toolkit API has not been used in project xxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=xxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","errors":[{"message":"Identity Toolkit API has not been used in project 818729994826 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=xxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","domain":"usageLimits","reason":"accessNotConfigured","extendedHelp":"https://console.developers.google.com"}],"status":"PERMISSION_DENIED"}}

这让我相信这是认证相关的,即使代码托管在Google域中,我认为应该自动进行身份验证。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-03-27 10:20:18

好吧。我找到了错误的来源,日志响应不是来自Google,而是来自我自己的代码。

我在一个团队中工作,我不知道我的团队中的一个成员做了一些更改(不幸的是,这是我正在工作的环境,所以没有git或提及正在发生的更改)。

得出这个结论的过程类似于在Wordpress中一次禁用一个插件。

我把我的代码分成几部分,然后运行它们,它们运行得很好。直到我遇到一个与api对话的代码,因此产生了这个错误。

希望这能帮助任何人在错误调试中经历一些大的未知。此外,学习单元测试可能有一个很好的警告。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55366233

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档