简体   繁体   中英

Webhook call failed. Error: UNAVAILABLE. dialogflow

I have a problem with the dialogflow and the diagnostic info that comes out:

{
  "responseId": "7cc5f6f7-c15c-43b4-99b8-3677b463d737-47692ce7",
  "queryResult": {
    "queryText": "081908190819",
    "parameters": {
      "phone": 81908190819
    },
    "allRequiredParamsPresent": true,
    "fulfillmentMessages": [
      {
        "text": {
          "text": [
            ""
          ]
        }
      }
    ],
    "intent": {
      "name": "projects/bookingteetime-lqsjjx/agent/intents/b967bab7-a6e1-499f-bbce-ba665b23c004",
      "displayName": "BookingConfirmation"
    },
    "intentDetectionConfidence": 1,
    "diagnosticInfo": {
      "webhook_latency_ms": 3956
    },
    "languageCode": "en"
  },
  "webhookStatus": {
    "code": 14,
    "message": "Webhook call failed. Error: UNAVAILABLE."
  }
}

Check your logs. Error Unavailable comes up whenever there is a problem in your fulfillment code. Use logs and try catch to figure out the issue.

I spend so many times looking for a reasonable answer for this issue and finally I got a solution for it. In order to help futures sufferers I am posting what I founded out that solve my problem.

Change the version of your dialogflow-fullfilment from "0.5.0" para "0.6.1" This solved my problem.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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