question

newuser-565dea65-ca61-44de-9a24-e342132f45f9 avatar image

The skill must respond to all launch requests without an error response

on the developer console functional test, i keep getting a error "The skill must respond to all launch requests without an error response. "

launch
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jason@Amazon avatar image
Jason@Amazon answered

Without looking at your skill directly it's hard to tell what the issue is, but check through your launch requests and make sure all of your intents are able to be called without any issue. I recommend reaching out to us here with your skill ID where we will be able to assist further.

4 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

MikeV avatar image MikeV commented ·

I'm receiving the same message... very confusing as I set up the Skill and the Lambda function as I have before.

Help will be appreciated. I just posted a question like you noted on the link "I recommend reaching out to us here..."

Our Skill ID is: amzn1.ask.skill.f000258f-8518-46f9-8a5c-8a579118dca5

Our Lambda Function ID is: arn:aws:lambda:us-east-1:343432274743:function:AmStaffFacts

Thanks,

Mike

0 Likes 0 ·
Jason@Amazon avatar image Jason@Amazon ♦ MikeV commented ·

Hi Mike, I couldn't find your case - could you create another Contact Us case through the link here so that we can work with your skill over there?

0 Likes 0 ·
MikeV avatar image MikeV Jason@Amazon ♦ commented ·

Jason, Thank you for your reply.

Thanks…

I did just create a new ticket (# tbd... can update here once the system sends the email).

Please also know that the ticket I created overnight is # 5487275051.

Thanks,

Mike

From mikevbuysell@charter.net

To Amazon Developer Support

Subject Alexa

Message

My name is Mike. My family and I are trying to create a new skill - "AmStaff Facts," about American Staffordshire Terriers. I have created the Skill and the Lambda skill just like the other Fact Skills we have created. And yet, tonight, I am receiving, in the Certification "Functional test" this error: "The skill must respond to all launch requests without an error response." I clicked the "click here" and was taken to https://developer.amazon.com/docs/custom-skills/handle-requests-sent-by-alexa.html#launchrequest, which doesn't tell me much I can understand. Please help... it took three days to get us together. They all want the Echo Show and we're moving Wednesday so we have limited time.

Our Skill ID for AmStaff Facts is:

amzn1.ask.skill.f000258f-8518-46f9-8a5c-8a579118dca5

Our Lambda Function ID is:

arn:aws:lambda:us-east-1:343432274743:function:AmStaffFacts

Thanks,
Mike

0 Likes 0 ·
Show more comments
MikeV avatar image
MikeV answered

Jason,

I just went to the developer console and the functional test did not fail so I figured you did something so I submitted... then i went to the "Certification page" (https://developer.amazon.com/alexa/console/ask/certify/amzn1.ask.skill.f000258f-8518-46f9-8a5c-8a579118dca5/development/en_US/functional-test)

and I see the same error

The skill does not successfully respond to one or more launch requests from Alexa. Please note that the skill should handle all launch requests from Alexa gracefully without an error response from the endpoint.
Documentation Help:
Understanding handling launch requests:

and am confused.

I have never done anything with any launch requests.

and this page... from "Click here" is not insightful at all...

https://developer.amazon.com/docs/custom-skills/handle-requests-sent-by-alexa.html#launchrequest

LaunchRequest

Your service receives a LaunchRequest when the user invokes the skill with the invocation name, but does not provide any command mapping to an intent. For example:

User: Alexa, open Daily Horoscopes

For skills that just do one thing (such as telling a joke), the service can take action without requesting more information from the user. Services that need more information from the user may need to respond with a prompt. For guidance on how to design good prompts, see What Alexa Says.

In this Java example, the service writes information to a log and then calls a method to return a welcome response.

A LaunchRequest always starts a new session.

Your help today, to get us certified, will be greatly appreciated!!!

:)

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jason@Amazon avatar image Jason@Amazon ♦ commented ·

Thanks for reaching out again, and I've noted that you've created a case and that one of our team members are currently working with you, so we'll continue our correspondence over there.

0 Likes 0 ·
Sammy Zimmermanns avatar image
Sammy Zimmermanns answered

I've got the same issue. My solution was to add an Errorhandler like this:

const ErrorHandler = {
    canHandle() {
      return true;
    },
    handle(handlerInput, error) {
      console.log(`ERROR HANDLED: ${error.message}`);
      const requestAttributes = handlerInput.attributesManager.getRequestAttributes();
      return handlerInput.responseBuilder
        .speak(requestAttributes.t('ERROR_MESSAGE'))
        .reprompt(requestAttributes.t('ERROR_MESSAGE'))
        .getResponse();
    },
};

Don't forget to register this Handler as ".addErrorHandlers(ErrorHandler)"

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Fiach Reid avatar image
Fiach Reid answered

I had the same issue, but it was just a matter of looking in the CloudWatch logs of the Lambda function, to see what error had happened. In my case it was a reference to consentToken which is now deprecated.


10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-0f4191c5-967b-4a9d-aa28-687c9d2eef9e avatar image
newuser-0f4191c5-967b-4a9d-aa28-687c9d2eef9e answered

Hi guys,

you are only Talking About Opening cases, but is there a central recommandation or solution for that - obviously frequent - Problem?


I am facing the same Problem at the Moment.

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amazon_Bernardo Bezerra avatar image Amazon_Bernardo Bezerra commented ·

Hello and thank you for your message.

The reason why we ask to open cases for this sort of issues is that they can be very specific as it depends on the way the LaunchRequest is being handled. There isn't a single solution that will fix the issue for everyone. More often than not the code is trying to access some variable that is not available.

The best recommendation I can give (other than opening a case using our Contact Us page) is to log abundantly in order to make sure that everything that you expects to be is indeed present.

Regards,
Barry

0 Likes 0 ·