0

I am having problems trying to make a function that I will call from flex instance. The problem is that I'm getting the runtime application timed out error . I know how that twilio will kill any function that lasts longer than 5 secs. I want to do what this https://www.twilio.com/docs/runtime/functions/faq?code-sample=code-return-a-simple-successful-response&code-language=Node.js&code-sdk-version=default however it's still same problem.

...

client.recordings.each({ callSid: callSid }, recordings => {
  /* code to do with recordings (this includes another function with the client) */
}, function(err, result) {
  callback(err, Response);
});
philnash
  • 70,667
  • 10
  • 60
  • 88
danny gonzalez
  • 210
  • 2
  • 10
  • What is your function doing with each of the recordings? Perhaps that is taking too long and causing the timeout? – philnash Mar 04 '19 at 06:49

1 Answers1

0

I was sending the wrong Call Sid, which did not have recordings. Which resulted in it hanging instead of just going into the call back.

danny gonzalez
  • 210
  • 2
  • 10