首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用于Firebase部署中断的云功能

用于Firebase部署中断的云功能
EN

Stack Overflow用户
提问于 2017-05-10 21:59:23
回答 1查看 2.2K关注 0票数 0

更早的时候,我花了3-4分钟将功能部署到Firebase。现在,当我试图部署我的更改时,CMD运行10到15分钟,然后给我这个Deploy Error: Operation interrupted,并向我的云函数日志(也就是Operation interrupted )发送一条消息。

CMD和Log并不是很有用,因为它们不知道是什么导致了这个问题。我做的代码有什么问题吗?这很简单,我不认为这会引起问题,但这里是:

代码语言:javascript
复制
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'");
            }
        });
    });
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-11 03:13:50

2017年10月5日下午3点01分到5点23分(PST)之间发生了云功能部署事件。这个问题已经解决了。

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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43903381

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档