gpt4 book ai didi

google-cloud-functions - 谷歌函数部署错误,服务账户不存在

转载 作者:行者123 更新时间:2023-12-03 15:10:51 26 4
gpt4 key购买 nike

请您帮帮我,当我尝试部署谷歌云功能时收到此错误:

HTTP Error: 400, Default service account 'project-name@appspot.gserviceaccount.com' doesn't exist. Please recreate this account (for example by disabling and enabling the Cloud Functions API), or specify a different account.

用于部署的命令是:
firebase deploy --only functions

临时解决方案很好,但如果你能帮我永久解决它就更好了。

提前致谢。

最佳答案

就我而言,App Engine 默认服务帐户已被删除。它看起来像这样:{project_id}@appspot.gserviceaccount.com所以我不得不像这样恢复服务帐户:

You can now recover the deleted service accounts from https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete

you have to get the UniqueID of the service account from https://console.cloud.google.com/home/activity


来源: https://stackoverflow.com/a/55277567/888881
API 资源管理器是使用 IAM API 的一种简单方法: https://developers.google.com/apis-explorer/#p/

关于google-cloud-functions - 谷歌函数部署错误,服务账户不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54912513/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com