question

newuser-64a41272-f9be-4eda-8d84-71a5b807515c avatar image
newuser-64a41272-f9be-4eda-8d84-71a5b807515c asked ·

Python lambda endpoint is not working

Hello There,

I have made a custom Alexa skill with python lambda and uploaded it into AWS lambda function. But whenever i test the skill inside Alexa Developer Console, it always gives Json output with "null". Please help me out that how i can use python lambda with custom Alexa skill.

Please review the below Json input:-

"request": {

"type": "SessionEndedRequest",

"requestId": "amzn1.echo-api.request.fbe704e5-62b0-43a8-ab9d-4d4bbf32246e",

"timestamp": "2019-05-07T12:13:59Z",

"locale": "en-US",

"reason": "ERROR",

"error": {

"type": "INVALID_RESPONSE",

"message": "An exception occurred while dispatching the request to the skill."

}

}

Json output:-

null


Regards,

Satyam


alexa skills kitpythonaws
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Oliver@Amazon avatar image
Oliver@Amazon answered ·

Hey there, have you tried test event within Lambda?

Follow below tech doc to try it out! This is a much faster way to test for quick launch!

https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-an-aws-lambda-function.html#test-a-lambda-function-in-the-console

10 |2000 characters needed characters left characters exceeded

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