Webhook call failed. Error: DEADLINE_EXCEEDED | Request timed out

半腔热情 提交于 2020-03-21 06:38:10

问题


I'm using ASP.Net for back-end webhook. Some of requests are executed successfully and few are receiving this error:

Webhook call failed. Error: DEADLINE_EXCEEDED

But when I added a slightly big operation which takes least 2 seconds to complete and responds in around 3 seconds I'm continuously receiving this error.

The issue I think is only request time out. I can't speed up my response as it routes between 2-3 3rd party servers. So in someway I need to increase the response wait time in dialog flow for my bot.


回答1:


Thats not possible I am afraid, you can work around implementing an asynch background thread

https://stackoverflow.com/a/59625057/9095551




回答2:


This is what i received from Dialogflow support.

Hi,

Thanks for reaching out to Dialogflow Support. Webhook timeout limit for Actions on Google integration is 10 seconds. For all other integrations, including self-developed implementations sending requests to our API, webhook timeout is 5 seconds. These values are not customizable. The timeout limit includes time for Dialogflow requests to your webhook endpoint, the webhook processing time, and webhook response time back to Dialogflow.

Conversational interfaces are meant to be designed as a continuous message exchange between the end user and the app/bot. If your web service requires more time for executing operations in the background and this cannot be optimized, consider redesigning the conversation flow in such way that end users don't wait for the app/bot reply for more than 5 seconds (10 for Actions on Google).

Let me know if you have any questions.

Regards, Mark Dialogflow Support Team

So the only option is to keep user in conversation while you receive the response from webhook



来源:https://stackoverflow.com/questions/59695057/webhook-call-failed-error-deadline-exceeded-request-timed-out

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