云功能已完成,状态为:“超时" [英] Cloud Function finished with status: 'timeout'"

查看:68
本文介绍了云功能已完成,状态为:“超时"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Firebase控制台中,功能/日志"部分中的最后一个事件消息为功能执行耗时60006毫秒,状态为:'超时'.功能应该以超时"状态结束吗?还是我错过了代码中说到此结束"的内容?

In Firebase console, the last Event message in Functions/Log section is "Function execution took 60006 ms, finished with status: 'timeout'". Is "timeout" the status the function is supposed to finish with? Or did I miss something in the code that would say "that's the end"?

推荐答案

您应该在末尾发送类似res.send(200)的响应,以使其正确终止

You should send a response like res.send(200) at the end for it to terminate properly

这篇关于云功能已完成,状态为:“超时"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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