首页 > 解决方案 > Twilio 函数结束运行时

问题描述

我在尝试创建将从 flex 实例调用的函数时遇到问题。问题是我得到了运行时应用程序超时错误。我知道 twilio 将如何杀死任何持续时间超过 5 秒的功能。我想做这个https://www.twilio.com/docs/runtime/functions/faq?code-sample=code-return-a-simple-successful-response&code-language=Node.js&code-sdk-version=默认但它仍然是同样的问题。

...

client.recordings.each({ callSid: callSid }, recordings => {
  /* code to do with recordings (this includes another function with the client) */
}, function(err, result) {
  callback(err, Response);
});

标签: twiliotwilio-functions

解决方案


我发送了错误的 Call Sid,它没有录音。这导致它挂起,而不是仅仅进入回调。


推荐阅读