mike-grant / haaska

Home Assistant Alexa Skill Adapter that supports v3 of the Alexa Smart Home Skill API
MIT License
537 stars 117 forks source link

AWS: errorMessage": "Unable to import module 'lambda_function'" #219

Open kubert96 opened 3 years ago

kubert96 commented 3 years ago

Hello,

{ "directive": { "header": { "namespace": "Alexa.Discovery", "name": "Discover", "payloadVersion": "3", "messageId": "1bd5d003-31b9-476f-ad03-71d471922820" }, "payload": { "scope": { "type": "BearerToken", "token": "access-token-from-skill" } } } }

I imported the ZIP file and paste the test code to AWS console (and did the full setup) but i only get error after try to run a test:

Test Event Name haaska

Response { "errorMessage": "Unable to import module 'lambda_function'" }

Function Logs START RequestId: f0c7d8bb-56f0-41ec-b55d-f7a5163fa02e Version: 1 Unable to import module 'lambda_function': No module named 'lambda_function'

END RequestId: f0c7d8bb-56f0-41ec-b55d-f7a5163fa02e REPORT RequestId: f0c7d8bb-56f0-41ec-b55d-f7a5163fa02e Duration: 0.34 ms Billed Duration: 1 ms Memory Size: 128 MB Max Memory Used: 42 MB Init Duration: 0.89 ms

Request ID f0c7d8bb-56f0-41ec-b55d-f7a5163fa02e

LacazeThomas commented 3 years ago

Hi, I think it's a problem with event_handler in AWS lambda console See #168