Firebase部署的云端功能中断 [英] Cloud Functions for Firebase deploy interrupted

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

问题描述

之前,我花了大约3-4分钟时间将功能部署到Firebase Cloud。现在,当我试图部署我的更改,CMD运行好10-15分钟,然后给我这个部署错误:操作中断和一些消息到我的云功能日志还说中断操作


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 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'");
            }
        });
    });

解决方案

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

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

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