简体   繁体   English

DialogFlow V2 API-Webhook响应为空

[英]DialogFlow V2 API - Webhook response was empty

My webhook is not getting invoked from Dialogflow and always returning an error 我的webhook没有从Dialogflow调用,并且总是返回错误

Webhook call failed. Webhook呼叫失败。 Error: Webhook response was empty. 错误:Webhook响应为空。

When I use CURL/POST MAN with the dialogflow request the response I get is according to the documentation. 当我将CURL / POST MAN与dialogflow请求一起使用时,根据文档,我得到的响应是。

{
"fulfillmentMessages": [
  {
"text": {
"text": [
  "Hi, how can I help?"
],
}
}
],
"fulfillmentText": "Hi, how can I help?",
"outputContexts": [],
}

Check to make sure the URL you have set for fulfillment is the same one you're using in your tests and that it responds correctly to POST messages that are formatted with the webhook request JSON. 请检查以确保您设置的用于实现的URL与您在测试中使用的URL相同,并且可以正确响应以webhook请求JSON格式化的POST消息。

Check your server logs to see if there is an error being generated when your webhook is called. 检查服务器日志,以查看调用Webhook时是否生成错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM