2017-05-10 1 views
0

이전에 Firebase Cloud에 기능을 배포하는 데 3 ~ 4 분 정도 걸렸습니다. 이제 변경 사항을 적용하려고 할 때 CMD가 10-15 분 동안 양호한 상태로 실행 된 다음과 내 클라우드 기능 로그에 Operation interrupted이라는 작은 메시지가 표시됩니다. enter image description hereFirebase 배포를위한 클라우드 기능이 중단되었습니다

CMD 및 로그는이 문제의 원인을 알려주지 않으므로별로 도움이되지 않습니다. 내가 만든 코드에 문제가 있습니까? 그것은 매우 간단하고 나는 그 문제를 일으키는 생각하지 않습니다하지만 여기있다 :

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

이 난 그것에 아무것도 테스트 함수에, 내 모든 기능에 동일한 오류를 얻고있다. 로컬 에뮬레이터로 모든 것이 잘 작동합니다. 문제가 자동으로 해결 되었습니까, 아니면 무언가를해야만 했습니까? – emiliosg

+0

나는 아무것도 기다리지 않았다. Code가 아니라 대답에 명시된 바와 같이 Firebase에 문제가있었습니다. – Jonathan

답변

관련 문제