错误:4个DEADLINE_EXCEEDED:已超过最后期限 [英] Error: 4 DEADLINE_EXCEEDED: Deadline Exceeded
问题描述
在使用Dialogflow API进行少量事务后,出现 DEADLINE_EXCEEDED:超过最后期限
错误,此后我始终需要重新启动服务,然后它再次开始工作一段时间.即使尝试了很多博客也没有得到任何相关的答案.
After few transaction while using Dialogflow APIs, DEADLINE_EXCEEDED: Deadline Exceeded
error is coming and after that I always need to restart the service, then again it starts working for a while. Not getting any relevant answers even after trying lots of blogs.
使用节点包:dialogflow和dialogflow标准版(免费版)
Using node package: dialogflow and dialogflow standard edition (Free Version)
尝试了Dialogflow的各种代理,但未获得响应.
Tried with various agent of Dialogflow, but not getting the response.
错误:4 DEADLINE_EXCEEDED:截止日期已过在Object.exports.createStatusError(/srv/node_modules/grpc/src/common.js:87:15)在Object.onReceiveStatus(/srv/node_modules/grpc/src/client_interceptors.js:1188:28)在InterceptingListener._callNext(/srv/node_modules/grpc/src/client_interceptors.js:564:42)在InterceptingListener.onReceiveStatus(/srv/node_modules/grpc/src/client_interceptors.js:614:8)在回调时(/srv/node_modules/grpc/src/client_interceptors.js:841:24)代码:4元数据:元数据{_internal_repr:{}},详细信息:超过最后期限"}
Error: 4 DEADLINE_EXCEEDED: Deadline Exceeded at Object.exports.createStatusError (/srv/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/srv/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/srv/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/srv/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/srv/node_modules/grpc/src/client_interceptors.js:841:24) code: 4, metadata: Metadata { _internal_repr: {} }, details: 'Deadline Exceeded' }
使用 dialogflow
节点包时,此处使用
While using dialogflow
node package, and here using
const sessionClient = new dialogflow.SessionsClient();
在查询词组查询后检测意图未获得结果作为检测到的意图.
to detect intent not getting the result as detected intent after hitting query for a phrase.
推荐答案
当webhook调用超过最大等待时间时,将触发DEADLINE_EXCEEDED错误.
The DEADLINE_EXCEEDED error is triggered when the webhook call exceeds the maximum wait time.
DialogFlow履行文档中所述:
对于Google的操作,响应必须在10秒内发生应用程序或其他所有应用程序5秒,否则请求将超时.
The response must occur within 10 seconds for Actions on Google applications or 5 seconds for all other applications, otherwise the request will time out.
如果需要,可以在dialogflow上设置预定义的消息,当履行请求超过可用时间时发送该消息.
If you want, on dialogflow, you can set a pre-defined message that is sent when the fulfillment request exceeds the available time.
这篇关于错误:4个DEADLINE_EXCEEDED:已超过最后期限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!