Release - Amazon Echo skill for Kodi

  Thread Rating:
  • 11 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jingai Online
Skilled Skinner
Posts: 2,261
Joined: Mar 2010
Reputation: 38
Post: #1816
New release -- changes:

v2.8.5 (08/20/2017)
  • Add support for playing music videos.

As usual, see UPGRADING.md if you're upgrading from a previous version.
find quote
MoshePupkin Offline
Junior Member
Posts: 7
Joined: Aug 2017
Reputation: 0
Post: #1817
I get "The remote endpoint could not be called, or the response it returned was invalid." while testing it. There is nothing in the Apache log (not even with LogLevel info)...any idea how to proceed?

P.S. I'm self hosting, of course.
(This post was last modified: Today 20:11 by MoshePupkin.)
find quote
jingai Online
Skilled Skinner
Posts: 2,261
Joined: Mar 2010
Reputation: 38
Post: #1818
Alexa cannot connect to your web server.

Is port 443 not open to the outside world? Invalid SSL cert? Apache cfg blocking Amazon? Firewall?
find quote
MoshePupkin Offline
Junior Member
Posts: 7
Joined: Aug 2017
Reputation: 0
Post: #1819
Actually, it does connect...I changed something and now I get this error: There was an error calling the remote endpoint, which returned HTTP 301 : MOVED PERMANENTLY
find quote
MoshePupkin Offline
Junior Member
Posts: 7
Joined: Aug 2017
Reputation: 0
Post: #1820
OK, I changed the URL from "https://myhost.mydomain.com/kodi" to "https://myhost.mydomain.com" and now I seem to be getting somewhere... this is the Apache log

[Wed Aug 23 21:17:15.352668 2017] [wsgi:info] [pid 14341] [client 72.21.217.140:7816] mod_wsgi (pid=14341, process='', application='127.0.1.1|'): Loading WSGI script '/var/www/wsgi/kodi-alexa/alexa.wsgi'.
[Wed Aug 23 21:17:17.033039 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] Shuffling music videos
[Wed Aug 23 21:17:17.033304 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] Sending request to http://127.0.0.1:8080/jsonrpc from device None
[Wed Aug 23 21:17:17.173051 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] [2017-08-23 21:17:17,171] ERROR in app: Exception on / [POST]
[Wed Aug 23 21:17:17.173077 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] Traceback (most recent call last):
[Wed Aug 23 21:17:17.173083 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] File "/var/www/wsgi/kodi-alexa/venv/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
[Wed Aug 23 21:17:17.173087 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] response = self.full_dispatch_request()
[Wed Aug 23 21:17:17.173092 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] File "/var/www/wsgi/kodi-alexa/venv/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
[Wed Aug 23 21:17:17.173097 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] rv = self.handle_user_exception(e)
[Wed Aug 23 21:17:17.173102 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] File "/var/www/wsgi/kodi-alexa/venv/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
[Wed Aug 23 21:17:17.173107 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] reraise(exc_type, exc_value, tb)
[Wed Aug 23 21:17:17.173124 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] File "/var/www/wsgi/kodi-alexa/venv/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
[Wed Aug 23 21:17:17.173130 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] rv = self.dispatch_request()
[Wed Aug 23 21:17:17.173133 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] File "/var/www/wsgi/kodi-alexa/venv/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
[Wed Aug 23 21:17:17.173138 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] return self.view_functions[rule.endpoint](**req.view_args)
[Wed Aug 23 21:17:17.173142 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] File "/var/www/wsgi/kodi-alexa/venv/local/lib/python2.7/site-packages/flask_ask/core.py", line 670, in _flask_view_func
[Wed Aug 23 21:17:17.173146 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] result = self._map_intent_to_view_func(self.request.intent)()
[Wed Aug 23 21:17:17.173149 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] File "/var/www/wsgi/kodi-alexa/alexa.py", line 2327, in alexa_shuffle_music_videos
[Wed Aug 23 21:17:17.173153 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] elif Genre:
[Wed Aug 23 21:17:17.173157 2017] [wsgi:error] [pid 14341] [client 72.21.217.140:7816] NameError: global name 'Genre' is not defined
find quote
jingai Online
Skilled Skinner
Posts: 2,261
Joined: Mar 2010
Reputation: 38
Post: #1821
@MoshePupkin, that's just a bug in the error handling for that Intent. I've fixed it upstream.
find quote
Post Reply