Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

question

Michael E. Strupp avatar image
Michael E. Strupp asked

Problem in uploading code to AWS Lambda

Is anyone else experiencing a problem when uploading code to AWS Lambda this morning? For example, I uploaded some of the sample code (the one for 'space geek') from the ASK and I get the following response: { "errorMessage": "Cannot read property 'application' of undefined", "errorType": "TypeError", "stackTrace": [ "AlexaSkill.execute (/var/task/AlexaSkill.js:72:62)", "exports.handler (/var/task/index.js:105:15)" ] } I see the same error currently when I upload my own code.
alexa skills kitsubmission testing certification
10 |5000

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

Michael E. Strupp avatar image
Michael E. Strupp answered
To clarify, the error message I'm seeing appears AWS > Lambda > Functions > Skill window, under the "Execution Result (Failed) Section". When I uploaded the code for 'space geek', I see the following log output: "START RequestId: dda6ad01-70f3-11e5-b7ae-57a9e86e4f13 Version: $LATEST 2015-10-12T15:14:00.559Z dda6ad01-70f3-11e5-b7ae-57a9e86e4f13 Unexpected exception TypeError: Cannot read property 'application' of undefined 2015-10-12T15:14:00.619Z dda6ad01-70f3-11e5-b7ae-57a9e86e4f13 {"errorMessage":"Cannot read property 'application' of undefined","errorType":"TypeError","stackTrace":["AlexaSkill.execute (/var/task/AlexaSkill.js:72:62)","exports.handler (/var/task/index.js:105:15)"]} END RequestId: dda6ad01-70f3-11e5-b7ae-57a9e86e4f13 REPORT RequestId: dda6ad01-70f3-11e5-b7ae-57a9e86e4f13
10 |5000

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

memo@amazon avatar image
memo@amazon answered
Hi Michael, We're looking into this, I'll update the thread as we get more information. Thanks.
10 |5000

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

memo@amazon avatar image
memo@amazon answered
Hi, We were able to replicate this issue by removing the 'application' value from the JSON. Can you please make sure all your intents have 'application' set correctly? For reference, you can go to your lambda function, click on Actions -> Configure Sample Event, and From the "Sample event template" dropdown, select an existing template, for example: Alexa Start Session.
10 |5000

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