Cloud Functions for Firebase 部署中断 [英] Cloud Functions for Firebase deploy interrupted

查看:22
本文介绍了Cloud Functions for Firebase 部署中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前,我花了大约 3-4 分钟将功能部署到 Firebase Cloud.现在,当我尝试部署我的更改时,CMD 运行了 10-15 分钟,然后给了我这个 Deploy Error: Operation interrupted 和我的云功能日志的一条小消息也说 操作中断.

Earlier it took me around 3-4 minutes to deploy functions to Firebase Cloud. Now when I'm trying to deploy my changes, CMD runs for good 10-15 minutes and then gives me this Deploy Error: Operation interrupted and a little message to my Cloud function log also saying Operation interrupted.

CMD 和 Log 不是很有帮助,因为它们不能说明导致此问题的原因.我做的代码有问题吗?这很简单,我不认为这是导致问题的原因,但它是:

CMD and Log are not very helpful since they do not tell what is causing this problem. Is there something wrong with the code I made? It's very simple and I don't think that's causing the problem but here it is:

const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);

var roomID = "cheufer_923sfd98";

exports.findRoom = functions.database
    .ref('/Players Searching For Room/{uid}')
    .onWrite(event => {

        if(!event.data.exists())
        {
            return;
        }

        admin.database().ref('/Test Array/' + roomID).transaction(function(content){

            if(content == null)
            {
                content.push( {onGoing: false} );

                content.push( {players: [] } );
            }

            content.players.push(event.params.uid);

            return content;

        }, function(error, committed){

            if(committed)
            {
                console.log("Committed successfully. New data was inserted in table called 'TestArray'");
            }
        });
    });

推荐答案

在 2017 年 5 月 10 日下午 3:01 到下午 5:23(太平洋标准时间)发生了一起 Cloud Functions 部署事件.已经解决了.

There was an incident with Cloud Functions deployments from 3:01pm to 5:23pm (PST) on 5/10/2017. It has been resolved.

https://status.firebase.google.com/incident/Functions/17001

这篇关于Cloud Functions for Firebase 部署中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆