Twilio sandbox webhook url returning timeout execution error

这一生的挚爱 提交于 2019-12-20 06:26:51

问题


can anyone please tell me how to increase timeout for twilio sandbox http post url. I am trying to building one programmable chat application using whatsapp twilio sandbox using asp.net technology. Normally my application methods takes 20 plus seconds to run but when i did same thing on twilio sandbox then its returning execution timeout error. is there any way to increase timeout for twilio sandbox using .net.


回答1:


Twilio developer evangelist here.

The Twilio webhook timeout is 15 seconds and it can't be changed.

Web applications that take 20+ seconds to respond to incoming requests are not recommended in general. They ties up processes and resources on your server and may lead to other requests being dropped.

I would recommend you do whatever work that takes more than 20 seconds in a background worker outside of the main web process. You can then respond to the webhook quickly, with an empty response and then use the REST API to send your reply message once the work is done.



来源:https://stackoverflow.com/questions/55501932/twilio-sandbox-webhook-url-returning-timeout-execution-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!