question

Wayne Smallman avatar image
Wayne Smallman asked

TypeError: Cannot read property 'locale' of undefined

I've followed the instructions to several different tutorials, using different zip files with different files, including those I'd written myself. I've also followed the instructions for compressing files via the command line interface, but I'm still getting the "TypeError: Cannot read property 'locale' of undefined" error:

START RequestId: f0f8c8c6-1645-11e7-813d-d13386de1364 Version: $LATEST
2017-03-31T19:12:12.139Z	f0f8c8c6-1645-11e7-813d-d13386de1364	TypeError: Cannot read property 'locale' of undefined
    at AlexaRequestEmitter.HandleLambdaEvent (/var/task/node_modules/alexa-sdk/lib/alexa.js:103:38)
    at AlexaRequestEmitter.Object.defineProperty.value (/var/task/node_modules/alexa-sdk/lib/alexa.js:92:31)
    at exports.handler (/var/task/index.js:16:8)
END RequestId: f0f8c8c6-1645-11e7-813d-d13386de1364
REPORT RequestId: f0f8c8c6-1645-11e7-813d-d13386de1364	Duration: 136.84 ms	Billed Duration: 200 ms 	Memory Size: 128 MB	Max Memory Used: 28 MB	
RequestId: f0f8c8c6-1645-11e7-813d-d13386de1364 Process exited before completing request

I found another discussion about the same problem, but the advice did not help.

Since this is a file I've not written, I have no control over it, nor am I inclined to attempt fixing it.

I've been at this for a couple of weeks, so I would appreciate some assistance here.

alexa skills kitamazon appstoreskilllambda
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.

1 Answer

Nick Gardner avatar image
Nick Gardner answered

How is the structure for your zip file defined? I've found its pretty easy to make a small error which results in issues with the zip file structure. If you could take a screenshot of your unpacked zip file that would be great.

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.

This is how my zip is structured

0 Likes 0 ·