当前位置: 首页 > 知识库问答 >
问题:

将我的功能部署到Google云时出现问题

皇甫琛
2023-03-14

我在将我的功能部署到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":

共有2个答案

仲孙默
2023-03-14

消息中可以看到“原因:所属项目的账单帐户在缺席状态下被禁用。”

@Doug已经给出了正确的下一步联系Firebase支持,因为本论坛无法深入了解。

丁理
2023-03-14

我不熟悉堆栈溢出,因此无法将问题标记为重复或注释,因此我在此再次回答:

Node.js8 Firebase云功能目前正在逐步淘汰,因为Node.js8最近被Node.js基金会标记为“生命终结”。

Node.js8函数的部署将在2021年2月15日之后停止,部署的Node.js函数的执行将在2021年3月15日之后停止。

如果您最近已切换到节点。js 10 Firebase云功能,这些功能需要Blaze现收现付计费计划和Firebase CLI版本≥ 8.1.0.使用无火花层,无法部署节点。JS10 Firebase云函数。

错误消息“原因:所属项目的账单帐户在缺席状态下被禁用”提供了一些有关此问题原因的信息。

来源(我对重复问题的回答)。

 类似资料: