dialogflow / dialogflow-fulfillment-nodejs

Dialogflow agent fulfillment library supporting v1&v2, 8 platforms, and text, card, image, suggestion, custom responses
Apache License 2.0
597 stars 282 forks source link

dialogflowFirebaseFulfillment :: No responses defined for platform: DIALOGFLOW_CONSOLE #323

Open Potxe opened 3 years ago

Potxe commented 3 years ago

For a few months when using the fullfilment from the dialog flow console it gives me the following error

No responses defined for platform: DIALOGFLOW_CONSOLE

{ insertId: "000000-006a2343-643b-4942-b7d1-6d9d89a1a197"
labels: { execution_id: "gh04m5gz7tx6"
} logName: "projects/chatbots-dgxbch/logs/cloudfunctions.googleapis.com%2Fcloud-functions"
receiveTimestamp: "2020-10-29T16:33:43.833723253Z"
resource: { labels: {…}
type: "cloud_function"
} severity: "INFO"
textPayload: "error general, vamos a transfer:Error: No responses defined for platform: DIALOGFLOW_CONSOLE"
timestamp: "2020-10-29T16:33:34.044Z"
trace: "projects/chatbots-dgxbch/traces/a6d5155964c519e6a07ba77ac986a2e3"
}

tohagan commented 3 years ago

And the reason I found is that "DIALOGFLOW_CONSOLE" is not defined as valid platform in https://github.com/dialogflow/dialogflow-fulfillment-nodejs/blob/master/src/rich-responses/rich-response.js#L18