Process timeout | Amazon Lambda to Firebase

前端 未结 4 712
粉色の甜心
粉色の甜心 2021-01-19 11:46

i\'ve written code in node.js and my data is on Firebase. The problem i\'m facing is that my code never exits. I\'ve done it like this one Link

The problem is that f

4条回答
  •  青春惊慌失措
    2021-01-19 12:14

    Calling callbackfunciton and then process.exit(0) didn't help in my case. goOffline() method of firebase didn't help either.

    I fixed the issue calling context.done(error, response) (instead of callback method). Now, my code is working.

    Still, if any one have better solution, kindly post here. It may help some one else :)

提交回复
热议问题