StopIntent -> END()

dialogflow

#1

action input “cancel” and error

Message:
this.getEndReason is not a function

	{
		"name": "CancelIntent",
		"alexa": {
			"name": "AMAZON.CancelIntent"
		},
		"phrases": [
			"cancel",
			"never mind",
			"forget it"
		]
	},
	{
		"name": "StopIntent",
		"alexa": {
			"name": "AMAZON.StopIntent"
		},
		"dialogflow": {
			"events": [ {
					"name": "actions_intent_CANCEL"
				}
			]
		},
		"phrases": [
			"stop"
		]
	},

Error -----------------------------------------------------------------

Message:
this.getEndReason is not a function

Stack:
TypeError: this.getEndReason is not a function
at GoogleAction.END (/Users/felix/Documents/pium/pium_ai_speaker/src/app.js:829:29)
at Function.applyHandle (/Users/felix/Documents/pium/pium_ai_speaker/node_modules/jovo-framework/src/middleware/Handler.ts:195:43)
at handle (/Users/felix/Documents/pium/pium_ai_speaker/node_modules/jovo-framework/src/middleware/Handler.ts:255:23)

Hint:
This might be an issue with upgrading the Jovo packages. Try to run jovo update instead of npm install

Learn more:
https://www.jovo.tech/docs/installation/upgrading



#2

Hi,

please run jovo -v in your project folder and post the output here.


#3
Jovo CLI Version: 2.2.7
    Jovo packages of current project:
      jovo-cms-i18next: 2.2.10
      jovo-core: 2.2.9
      jovo-db-filedb: 2.2.9
      jovo-framework: 2.2.12
      jovo-platform-alexa: 2.2.14
      jovo-platform-dialogflow: 2.2.10
      jovo-platform-googleassistant: 2.2.12
      jovo-plugin-debugger: 2.2.10

#4

Please see the Migration Guide for Jovo. this.getEndReason() is deprecated since Jovo v2.


#5

It’s deprecated in the Jovo class. We moved it to the AlexaSkill implementation.

this.$alexaSkill.getEndReason() should work.