在将功能部署到Google Cloud时遇到问题:
方法和消息在Firebase CLI中显示:
+ functions: Finished running predeploy script. i functions: ensuring necessary APIs are enabled ... + functions: all necessary APIs are enabled i functions: preparing functions directory for uploading ... i functions: packaged functions (85.85 KB) for uploading + functions: functions folder uploaded successfully i functions: current functions in project: Backup (us-central1), DashBoard (us-central1), dialogflowFirebaseFulfillment (us-central1) i functions: uploading functions in project: DashBoard (us-central1), Backup (us-central1) i functions: updating Node.js 10 (Beta) function DashBoard (us-central1) ... i functions: updating Node.js 10 (Beta) function Backup (us-central1) ... ! functions [DashBoard (us-central1)]: Deployment error. Failed to initialize region (action ID: f22869a1fe22aba0): Error when configuring GCS bucket gcf-sources-366403583884-us-central1 in project testechatbot-2020. Cause: The billing account for the owning project is disabled in state absent ! functions [Backup (us-central1)]: Deployment error. Failed to initialize region (action ID: 2e3bfdf4820819aa): Error when configuring GCS bucket gcf-sources-366403583884-us-central1 in project testechatbot-2020. Cause: The billing account for the owning project is disabled in state absent
操作方法和消息出现在Firebase控制台上
Backup {"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":7,"message":"Failed to initialize region (action ID: e0e457da63bedd16): Error when configuring GCS bucket gcf-sources-366403583884-us-central1 in project testechatbot-2020. Cause: The billing account for the owning project is disabled in state absent"},"authenticationInfo": DashBoard {"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":7,"message":"Failed to initialize region (action ID: 243073b0e1959dc3): Error when configuring GCS bucket gcf-sources-366403583884-us-central1 in project testechatbot-2020. Cause: The billing account for the owning project is disabled in state absent"},"authenticationInfo":
答案 0 :(得分:3)
我是Stack Overflow的新手,所以我无法将问题标记为重复或评论,因此我在这里再次回答:
Node.js 8 Firebase云功能目前正在逐步淘汰,因为 Node.js 8最近被Node.js标记为“寿命终止” 基础。
Node.js 8功能的部署将在2021年2月15日之后停止, 并且部署的Node.js函数的执行将在3月15日之后停止 2021。
如果您最近已切换到Node.js 10 Firebase云功能, 这些需要Blaze即用即付的计费计划和Firebase CLI版本≥8.1.0。使用Spark免费套餐,您无法部署 Node.js 10 Firebase云功能。
错误消息“原因:拥有项目的帐单帐户 在缺少状态下被禁用”提供了一些信息, 这个问题。
Source(我对重复问题的回答)。
答案 1 :(得分:1)
从该消息中,您会看到“原因:拥有项目的帐单帐户处于禁用状态。”
@Doug已经给出了正确的下一步与Firebase support联系,因为该论坛无法对其进行深入研究。