【发布时间】:2018-06-10 11:58:59
【问题描述】:
在 Google Actions 中,如何增加请求超时?
当我通过 Google Actions 调用我的外部 API 时,Google Actions 只会等待 5 秒(最长)我的 API 的响应。但我的 API 响应时间超过 5 秒,导致错误
“格式错误的响应:必须设置 final_response”
和
“XXX 现在没有响应。请稍后再试。”
(Google Assistant -> Google Actions(最多在 5 秒内返回响应(需要配置此))-> DialogFlow -> Cloud Functions(可以等到 9 分钟)- > 外部 API(响应时间超过 20 秒))
【问题讨论】:
-
欢迎来到 Stack Overflow!请了解如何提问here。您可以随时编辑 Cloud Function 中的超时。默认为 1 分钟,can be extended up to 9 minutes。至于另一部分,您能否编辑您的问题以使其更清楚?
-
@Mangu 感谢您的回复。请检查我更新的问题。
-
答案是:使用followUpEvent,我可以将超时时间增加到一分钟或更长时间。
-
你能告诉我怎么做吗? dialowflow webhook 超时不是 5 秒吗?
标签: google-cloud-platform google-cloud-functions