haaska
haaska copied to clipboard
AWS: errorMessage": "Unable to import module 'lambda_function'"
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
Hi, I think it's a problem with event_handler in AWS lambda console See #168