20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

  •   
  • 1
  • 167
  • 168
  • 169
  • 170
  • 171(current)
Release Kanzi: Amazon Alexa skill for Kodi
(2019-10-16, 14:59)RodinMe Wrote:
(2019-09-14, 22:59)eurekabeacon Wrote:
(2019-09-14, 13:14)RodinMe Wrote: I took a look at your kodi.config file.  I assume that you're trying to set up kanzi, not koko (because there's no referral to a proxy.)  I also see that you're not trying to use a cache.  So the setup is very basic.  The error says that the problem occurs in transmission.  I think it could be with either the lambda function or your kodi setup.  I suspect it's the latter.

I assume that you have a dns name for your outside IP?  Try using your kodi box using a web browser and the dns name rather than your inside IP address or name.  Also, double check the kodi settings as shown on the lexigram instructions here:  https://lexigr.am/docs/getting-started.html, particularly making sure that you've included the remote control settings to "On", found at Settings ->  Service -> Control -> Application -> Allow remote control. 

Kodi is accessible via web browser. I’ve verified all the settings you suggested. Could this have something to do with the fact that I didn’t assign a skill ID?  
You don't need a skill ID.  (I've never used them.)  The only thing the skill ID does is to limit the skill to a particular Alexa box.

Your problem is with the Lambda function.  The error is only telling you that the function didn't provide a valid HTTP response.  Take a look at, and maybe post, the CloudWatch log from the failed function. 
Here is what the CloudWatch logs say:

START RequestId: 4d76ce75-4283-4b88-a5d9-8b017acadb63 Version: $LATEST

Unable to import module 'lambda_function': No module named lambda_function


END RequestId: 4d76ce75-4283-4b88-a5d9-8b017acadb63

REPORT RequestId: 4d76ce75-4283-4b88-a5d9-8b017acadb63 Duration: 0.46 ms Billed Duration: 100 ms Memory Size: 256 MB Max Memory Used: 43 MB Init Duration: 0.93 ms
XRAY TraceId: 1-5d7ca5b7-17977dae5e9b1abd531580e3 SegmentId: 78361b63475ff749 Sampled: false

START RequestId: c670ff9c-180f-4a45-ac1d-98721477525a Version: $LATEST

Unable to import module 'lambda_function': No module named lambda_function


END RequestId: c670ff9c-180f-4a45-ac1d-98721477525a

REPORT RequestId: c670ff9c-180f-4a45-ac1d-98721477525a Duration: 0.41 ms Billed Duration: 100 ms Memory Size: 256 MB Max Memory Used: 43 MB
XRAY TraceId: 1-5d7ca5b7-1a988cd88a9fc4b0c27c6491 SegmentId: 6e3a5e2426573d84 Sampled: false
Reply
(2019-11-05, 08:10)eurekabeacon Wrote:
(2019-10-16, 14:59)RodinMe Wrote:
(2019-09-14, 22:59)eurekabeacon Wrote: Kodi is accessible via web browser. I’ve verified all the settings you suggested. Could this have something to do with the fact that I didn’t assign a skill ID?  
You don't need a skill ID.  (I've never used them.)  The only thing the skill ID does is to limit the skill to a particular Alexa box.

Your problem is with the Lambda function.  The error is only telling you that the function didn't provide a valid HTTP response.  Take a look at, and maybe post, the CloudWatch log from the failed function.  
Here is what the CloudWatch logs say:

START RequestId: 4d76ce75-4283-4b88-a5d9-8b017acadb63 Version: $LATEST

Unable to import module 'lambda_function': No module named lambda_function


END RequestId: 4d76ce75-4283-4b88-a5d9-8b017acadb63

REPORT RequestId: 4d76ce75-4283-4b88-a5d9-8b017acadb63 Duration: 0.46 ms Billed Duration: 100 ms Memory Size: 256 MB Max Memory Used: 43 MB Init Duration: 0.93 ms
XRAY TraceId: 1-5d7ca5b7-17977dae5e9b1abd531580e3 SegmentId: 78361b63475ff749 Sampled: false

START RequestId: c670ff9c-180f-4a45-ac1d-98721477525a Version: $LATEST

Unable to import module 'lambda_function': No module named lambda_function


END RequestId: c670ff9c-180f-4a45-ac1d-98721477525a

REPORT RequestId: c670ff9c-180f-4a45-ac1d-98721477525a Duration: 0.41 ms Billed Duration: 100 ms Memory Size: 256 MB Max Memory Used: 43 MB
XRAY TraceId: 1-5d7ca5b7-1a988cd88a9fc4b0c27c6491 SegmentId: 6e3a5e2426573d84 Sampled: false
 

I figured out that the "Handler" under the "Function Code" section where you upload the zip file needs to be "alexa.lambda_handler" and not "lambda_function.lambda_handler". All is working now. Thanks for pointing me in the right direction!
Reply
I've been trying for the past few days to get this going. I've started over several times and get the same error. Any help would greatly be appreciated. Here is my error from the log when I try to deploy the skill. Using AWS Lambda.

Error: Command failed: /storage/.nvm/versions/node/v8.11.1/lib/node_modules/lexigram-cli/dist/../node_modules/.bin/ask deploy -t model
[Error]: Invalid response for interactionModel status from get-skill-status request.
Reply
  •   
  • 1
  • 167
  • 168
  • 169
  • 170
  • 171(current)
 
Thread Rating:
  • 15 Vote(s) - 4.6 Average



Logout Mark Read Team Forum Stats Members Help
Kanzi: Amazon Alexa skill for Kodi4.615