Could not find the route "["AMAZON.PauseIntent"]" in your handler function

amazon-alexa

#1

Any idea why I am getting this error message?
Could not find the route "["AMAZON.PauseIntent"]" in your handler function.

Our client is building sleep sounds Alexa Skills.

We have implemented all Jovo built-in functions around AudioPlayer Directive:

    PLAYBACKCONTROLLER: {
        'PlayCommandIssued'() {
            console.log('PlaybackController.PlayCommandIssued');
        },

        'NextCommandIssued'() {
            console.log('PlaybackController.NextCommandIssued');
        },

        'PreviousCommandIssued'() {
            console.log('PlaybackController.PreviousCommandIssued');
        },

        'PauseCommandIssued'() {
            console.log('PlaybackController.PauseCommandIssued');
        }
    },

    AUDIOPLAYER: {
            'AlexaSkill.PlaybackStarted'() {
                console.log('AlexaSkill.PlaybackStarted');
            },

            'AlexaSkill.PlaybackNearlyFinished'() {
                console.log('AlexaSkill.PlaybackNearlyFinished');
            },

            'AlexaSkill.PlaybackFinished'() {
                console.log('AlexaSkill.PlaybackFinished');
            },

            'AlexaSkill.PlaybackStopped'() {
                console.log('AlexaSkill.PlaybackStopped');
            },

            'AlexaSkill.PlaybackFailed'() {
                console.log('AlexaSkill.PlaybackFailed');
            },

        },

Each time I say “Alexa, stop”

she responds: “there was a problem with the requested skill’s response”

and displays this error in logs:
Could not find the route “[“AMAZON.PauseIntent”]” in your handler function.

Do we also need to implement AMAZON.PauseIntent?


#2

Appears same error received for AMAZON.ResumeIntent were playback controls ported to Jovo V3?


#3

When someone says “Alexa, Stop”, two requests are sent:

  • The AlexaSkill.PlaybackStopped audioplayer request gets sent
  • The AMAZON.PauseIntent intent request gets sent

You need to respond to both


#4

Ah!

Thank you for your quick response!

We will implement both:

  1. AlexaSkill.PlaybackStopped audioplayer request
  2. AMAZON.PauseIntent

#5

Great! For a deeper dive into the audioplayer funcitonality, take a look at this course:

https://www.jovo.tech/courses/project-3-podcast-player