Webhook呼叫失败。错误:DEADLINE_EXCEEDED |请求超时 [英] Webhook call failed. Error: DEADLINE_EXCEEDED | Request timed out

查看:461
本文介绍了Webhook呼叫失败。错误:DEADLINE_EXCEEDED |请求超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将ASP.Net用于后端Webhook。一些请求已成功执行,很少收到此错误:


Webhook调用失败。错误:DEADLINE_EXCEEDED


但是当我添加一个稍大的操作(至少需要2秒才能完成并在大约3秒内响应)时,不断收到此错误。



我认为这个问题只是请求超时。在2-3个第三方服务器之间进行路由时,我无法加快响应速度。因此,以某种方式,我需要增加我的机器人在对话框流中的响应等待时间。




感谢向Dialogflow支持的支持。 Google集成上的操作的Webhook超时限制
为10秒。对于所有其他
集成,包括将
请求发送到我们的API的自行开发的实现,webhook超时为5秒。这些值是
,不能自定义。超时限制包括向您的Webhook端点发送Dialogflow
请求的时间,Webhook处理时间以及
Webhook返回Dialogflow的响应时间。



对话接口应被设计为最终用户与应用程序/机器人之间的连续
消息交换。如果您的网络
服务需要更多时间在后台
中执行操作,并且无法优化,请考虑重新设计会话
流,以使最终用户不必等待应用/ bot会在5秒钟内回复
(Google上的操作为10秒)。 b

关于,标记Dialogflow支持团队


因此,唯一的选择是在接收用户时保持对话来自webhook的响应


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.

解决方案

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

这篇关于Webhook呼叫失败。错误:DEADLINE_EXCEEDED |请求超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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