• 1
  • 105
  • 106
  • 107(current)
  • 108
  • 109
  • 176
Release Kanzi: Amazon Alexa skill for Kodi
Just taken delivery of an Amazon Dot for the living room, my second Alexa enabled device and lo & behold you've gone and released multi-unit support!
Huge thanks guys, great work on the rewrite / new version!
Reply
(2017-06-22, 23:05)jingai Wrote: @WolvesPhil, run:

Code:
zappa tail dev

Make a request via Alexa, and post the log output here (feel free to redact any uniquely-identifying info).

I've just come back to this after a week away and may have to start again! Where do I run that command? in python?
Reply
@WolvesPhil, on the command line.
Reply
Hello,
I installed the lambda to by AWS and configured Skill, When I use the service simulator, it throws me below error:
Quote:There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error

Configuration from skills, lamdba and kodi hhtp server, port forwarding looks fine. On checking cloudwatch logs, I see the following error:

Quote:ERROR in c:\users\kim\appdata\local\temp\pip-build-_dkwba\Flask\flask\app: Exception on / [POST]
Traceback (most recent call last):
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\Flask\flask\app.py", line 1982, in wsgi_app
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\Flask\flask\app.py", line 1614, in full_dispatch_request
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\Flask\flask\app.py", line 1517, in handle_user_exception
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\Flask\flask\app.py", line 1612, in full_dispatch_request
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\Flask\flask\app.py", line 1598, in dispatch_request
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\flask-ask\flask_ask\core.py", line 571, in _flask_view_func
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\flask-ask\flask_ask\core.py", line 533, in _alexa_request
File "c:\users\kim\appdata\local\temp\pip-build-_dkwba\aniso8601\aniso8601\time.py", line 120, in parse_datetime
AttributeError: 'int' object has no attribute 'split'

Quote:[INFO] 2017-07-08T04:35:52.689Z ecb15c49-6396-11e7-987f-ab6be6e7ee55 72.21.217.155 - - [08/Jul/2017:04:35:52 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/UNAVAILABLE (Java/1.8.0_112)" 0/124.875

I tried to update the service again but no luck. Can someone help me with the issue?
Reply
@sushant.p, you're not alone. You might watch that link for a resolution.

That said, it only appears to be a problem for the simulator. It's possible there was an API change that simply hasn't rolled out yet.. it seems other skill developers are also seeing timestamps in different formats. But I'm sure it'll be resolved soon.
Reply
I'm running the skill on Heroku. I dcided to update it today as i havent in 2 months and now it just wont work. I decided to start over but it just crashes on Heroku:

Log:
Code:
2017-07-10T09:28:35.573293+00:00 heroku[web.1]: Starting process with command `gunicorn alexa:app`
2017-07-10T09:28:38.270942+00:00 heroku[web.1]: Process exited with status 3
2017-07-10T09:28:38.282621+00:00 heroku[web.1]: State changed from starting to crashed
2017-07-10T09:28:38.030078+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [4] [INFO] Starting gunicorn 19.7.1
2017-07-10T09:28:38.030874+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [4] [INFO] Listening at: http://0.0.0.0:6886 (4)
2017-07-10T09:28:38.030995+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [4] [INFO] Using worker: sync
2017-07-10T09:28:38.035188+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [8] [INFO] Booting worker with pid: 8
2017-07-10T09:28:38.040376+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [8] [ERROR] Missing parentheses in call to 'print' (alexa.py, line 48)
2017-07-10T09:28:38.040378+00:00 app[web.1]: Traceback (most recent call last):
2017-07-10T09:28:38.040378+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 135, in load_wsgi
2017-07-10T09:28:38.040379+00:00 app[web.1]:     self.wsgi = self.app.wsgi()
2017-07-10T09:28:38.040379+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2017-07-10T09:28:38.040380+00:00 app[web.1]:     self.callable = self.load()
2017-07-10T09:28:38.040380+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2017-07-10T09:28:38.040381+00:00 app[web.1]:     return self.load_wsgiapp()
2017-07-10T09:28:38.040381+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2017-07-10T09:28:38.040381+00:00 app[web.1]:     return util.import_app(self.app_uri)
2017-07-10T09:28:38.040382+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 352, in import_app
2017-07-10T09:28:38.040382+00:00 app[web.1]:     __import__(module)
2017-07-10T09:28:38.040383+00:00 app[web.1]:   File "/app/alexa.py", line 48
2017-07-10T09:28:38.040383+00:00 app[web.1]:     print card_title
2017-07-10T09:28:38.040383+00:00 app[web.1]:                    ^
2017-07-10T09:28:38.040384+00:00 app[web.1]: SyntaxError: Missing parentheses in call to 'print'
2017-07-10T09:28:38.040870+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [8] [ERROR] Exception in worker process
2017-07-10T09:28:38.040871+00:00 app[web.1]: Traceback (most recent call last):
2017-07-10T09:28:38.040872+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 135, in load_wsgi
2017-07-10T09:28:38.040872+00:00 app[web.1]:     self.wsgi = self.app.wsgi()
2017-07-10T09:28:38.040872+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2017-07-10T09:28:38.040873+00:00 app[web.1]:     self.callable = self.load()
2017-07-10T09:28:38.040873+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2017-07-10T09:28:38.040874+00:00 app[web.1]:     return self.load_wsgiapp()
2017-07-10T09:28:38.040874+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2017-07-10T09:28:38.040875+00:00 app[web.1]:     return util.import_app(self.app_uri)
2017-07-10T09:28:38.040875+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 352, in import_app
2017-07-10T09:28:38.040875+00:00 app[web.1]:     __import__(module)
2017-07-10T09:28:38.040876+00:00 app[web.1]:   File "/app/alexa.py", line 48
2017-07-10T09:28:38.040876+00:00 app[web.1]:     print card_title
2017-07-10T09:28:38.040876+00:00 app[web.1]:                    ^
2017-07-10T09:28:38.040877+00:00 app[web.1]: SyntaxError: Missing parentheses in call to 'print'
2017-07-10T09:28:38.040877+00:00 app[web.1]:
2017-07-10T09:28:38.040878+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2017-07-10T09:28:38.040878+00:00 app[web.1]:
2017-07-10T09:28:38.040878+00:00 app[web.1]: Traceback (most recent call last):
2017-07-10T09:28:38.040879+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 578, in spawn_worker
2017-07-10T09:28:38.040879+00:00 app[web.1]:     worker.init_process()
2017-07-10T09:28:38.040879+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 126, in init_process
2017-07-10T09:28:38.040880+00:00 app[web.1]:     self.load_wsgi()
2017-07-10T09:28:38.040880+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 148, in load_wsgi
2017-07-10T09:28:38.040880+00:00 app[web.1]:     self.reloader.add_extra_file(exc_val.filename)
2017-07-10T09:28:38.040883+00:00 app[web.1]: AttributeError: 'NoneType' object has no attribute 'add_extra_file'
2017-07-10T09:28:38.040981+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [8] [INFO] Worker exiting (pid: 8)
2017-07-10T09:28:38.046111+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [9] [INFO] Booting worker with pid: 9
2017-07-10T09:28:38.052356+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [9] [ERROR] Missing parentheses in call to 'print' (alexa.py, line 48)
2017-07-10T09:28:38.052359+00:00 app[web.1]: Traceback (most recent call last):
2017-07-10T09:28:38.052359+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 135, in load_wsgi
2017-07-10T09:28:38.052360+00:00 app[web.1]:     self.wsgi = self.app.wsgi()
2017-07-10T09:28:38.052361+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2017-07-10T09:28:38.052362+00:00 app[web.1]:     self.callable = self.load()
2017-07-10T09:28:38.052362+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2017-07-10T09:28:38.052363+00:00 app[web.1]:     return self.load_wsgiapp()
2017-07-10T09:28:38.052363+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2017-07-10T09:28:38.052364+00:00 app[web.1]:     return util.import_app(self.app_uri)
2017-07-10T09:28:38.052365+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 352, in import_app
2017-07-10T09:28:38.052365+00:00 app[web.1]:     __import__(module)
2017-07-10T09:28:38.052366+00:00 app[web.1]:   File "/app/alexa.py", line 48
2017-07-10T09:28:38.052366+00:00 app[web.1]:     print card_title
2017-07-10T09:28:38.052367+00:00 app[web.1]:                    ^
2017-07-10T09:28:38.052399+00:00 app[web.1]: SyntaxError: Missing parentheses in call to 'print'
2017-07-10T09:28:38.053061+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [9] [ERROR] Exception in worker process
2017-07-10T09:28:38.053062+00:00 app[web.1]: Traceback (most recent call last):
2017-07-10T09:28:38.053063+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 135, in load_wsgi
2017-07-10T09:28:38.053064+00:00 app[web.1]:     self.wsgi = self.app.wsgi()
2017-07-10T09:28:38.053065+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2017-07-10T09:28:38.053065+00:00 app[web.1]:     self.callable = self.load()
2017-07-10T09:28:38.053066+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2017-07-10T09:28:38.053066+00:00 app[web.1]:     return self.load_wsgiapp()
2017-07-10T09:28:38.053067+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2017-07-10T09:28:38.053068+00:00 app[web.1]:     return util.import_app(self.app_uri)
2017-07-10T09:28:38.053068+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 352, in import_app
2017-07-10T09:28:38.053069+00:00 app[web.1]:     __import__(module)
2017-07-10T09:28:38.053070+00:00 app[web.1]:   File "/app/alexa.py", line 48
2017-07-10T09:28:38.053070+00:00 app[web.1]:     print card_title
2017-07-10T09:28:38.053071+00:00 app[web.1]:                    ^
2017-07-10T09:28:38.053072+00:00 app[web.1]: SyntaxError: Missing parentheses in call to 'print'
2017-07-10T09:28:38.053072+00:00 app[web.1]:
2017-07-10T09:28:38.053073+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2017-07-10T09:28:38.053074+00:00 app[web.1]:
2017-07-10T09:28:38.053074+00:00 app[web.1]: Traceback (most recent call last):
2017-07-10T09:28:38.053075+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 578, in spawn_worker
2017-07-10T09:28:38.053080+00:00 app[web.1]:     worker.init_process()
2017-07-10T09:28:38.053080+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 126, in init_process
2017-07-10T09:28:38.053081+00:00 app[web.1]:     self.load_wsgi()
2017-07-10T09:28:38.053081+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 148, in load_wsgi
2017-07-10T09:28:38.053082+00:00 app[web.1]:     self.reloader.add_extra_file(exc_val.filename)
2017-07-10T09:28:38.053083+00:00 app[web.1]: AttributeError: 'NoneType' object has no attribute 'add_extra_file'
2017-07-10T09:28:38.053201+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [9] [INFO] Worker exiting (pid: 9)
2017-07-10T09:28:38.170224+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [4] [INFO] Shutting down: Master
2017-07-10T09:28:38.170409+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [4] [INFO] Reason: Worker failed to boot.
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
2017-07-10T09:28:38.053074+00:00 app[web.1]:
2017-07-10T09:28:38.053075+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 578, in spawn_worker
2017-07-10T09:28:38.053080+00:00 app[web.1]:     worker.init_process()
2017-07-10T09:28:38.053081+00:00 app[web.1]:     self.load_wsgi()
2017-07-10T09:28:38.053080+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 126, in init_process
2017-07-10T09:28:38.053081+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 148, in load_wsgi
2017-07-10T09:28:38.053083+00:00 app[web.1]: AttributeError: 'NoneType' object has no attribute 'add_extra_file'
2017-07-10T09:28:38.053201+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [9] [INFO] Worker exiting (pid: 9)
2017-07-10T09:28:38.053082+00:00 app[web.1]:     self.reloader.add_extra_file(exc_val.filename)
2017-07-10T09:28:38.170409+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [4] [INFO] Reason: Worker failed to boot.
2017-07-10T09:28:38.170224+00:00 app[web.1]: [2017-07-10 09:28:38 +0000] [4] [INFO] Shutting down: Master
Reply
@fixxolas, that should be fixed now. Try it again and let me know.
Reply
Hello!

many thanks for what seem to be a wonderful Alexa Skill. Received my echo dot a couple of days ago and trying to get it to work.

I Have successfully enabled Kodi web interface and are able to access it with my dynamic dns-adress. Tried both locally and externally, so the port forwarding is working.
I Have my code running in amazon lambda, following the instructions in the guide.

When I try giving Alexa the command I get a 500-error, any ideas on whats wrong?

When browsing to the url of the aws-app I get following message.

"{u'message': u'An uncaught exception happened while servicing this request. You can investigate this with the `zappa tail` command.', u'traceback': ['Traceback (most recent call last):\\n', ' File \"/var/task/handler.py\", line 433, in handler\\n response = Response.from_app(self.wsgi_app, environ)\\n', ' File \"/private/var/folders/xl/cxp6yy7d4rs_hwpl1yxgym640000gn/T/pip-build-AujpDY/Werkzeug/werkzeug/wrappers.py\", line 903, in from_app\\n', ' File \"/private/var/folders/xl/cxp6yy7d4rs_hwpl1yxgym640000gn/T/pip-build-AujpDY/Werkzeug/werkzeug/wrappers.py\", line 57, in _run_wsgi_app\\n', ' File \"/private/var/folders/xl/cxp6yy7d4rs_hwpl1yxgym640000gn/T/pip-build-AujpDY/Werkzeug/werkzeug/test.py\", line 884, in run_wsgi_app\\n', \"TypeError: 'NoneType' object is not callable\\n\"]}"

Thank you!
Reply
@hagman, you can't just browse to the URL. HTTP 500 error is expected if you do so.

You need to run:

Code:
zappa tail dev

before sending a response and then looking at the log that appears there after.
Reply
@jingai The browsing part was just to try figuring out what was wrong. The 500 error appears in the alexa app when trying to execute the commands.

I ran zappa tail dev but unfortunately I'm not technical enough to know what I´m looking for. If your wiiling to have a look, here is the output: https://pastebin.com/a4QQ4yMA
Reply
@hagman, you missed a part from the README. In your virtualenv, run:

Code:
pip install packaging
zappa deploy dev
Reply
Thank you so much, really appreciate the quick answer. Everything seems to be working fine now!
Reply
Having some issues, just deployed it by following the guide, but attempting to test it, or use alexa results in
Code:
There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error


Zappa tail dev results in an ungodly amount of stuff. Not sure what to do. Here is the full tail pastebin: https://pastebin.com/yq7QQeTJ

I saw previous post, of pip install packaging, but I did that as well.

Code:
[1499817590677] [DEBUG] 2017-07-11T23:59:50.658Z 069ca9cd-6695-11e7-a781-1b61b1c49ed7 Zappa Event: {u'account': u'058100245157', u'region': u'us-east-1', u'detail': {}, u'detail-type': u'Scheduled Event', u'source': u'aws.events', u'version': u'0', u'time': u'2017-07-11T23:59:42Z', u'id': u'ff61064b-285b-45ea-9794-b634bd9fc408', u'resources': [u'arn:aws:events:us-east-1:058100245157:rule/kodi-alexa-mast-dev-zappa-keep-warm-handler.keep_warm_callback']}
[1499817590697] [DEBUG] 2017-07-11T23:59:50.677Z 069ca9cd-6695-11e7-a781-1b61b1c49ed7 Zappa Event: {}
[1499817731177] [DEBUG] 2017-07-12T00:02:11.166Z 5a6a85d1-6695-11e7-95ea-552cfb98264b Zappa Event: {u'body': u'IHsic2Vzc2lvbiI6IAp7InNlc3Npb25JZCI6IlNlc3Npb25JZC4xN2UzMTY1ZS00Njc2LTQxY2QtOThlZS1kNzdjYzU0NzliMTQiLCJhcHBsaWNhdGlvbiI6eyJhcHBsaWNhdGlvbklkIjoiYW16bjEuYXNrLnNraWxsLmJmMjhjMjNjLWMwNTYtNDNhZi1hYmRkLWIzYTNhZDEyMGFkMCJ9LCJhdHRyaWJ1dGVzIjp7fSwidXNlciI6eyJ1c2VySWQiOiJhbXpuMS5hc2suYWNjb3VudC5BSEdPU0o2VEhYRjM2TUZNV0dMTzRCSkJNTDdMSFlIT09GVDY0Vko2SklaQ0RFWjdUSURHQTRQU1Y0TzNIVk5ZRFVKQzNZSUlMR0FHSjVaWUVMUU40RkM2V0RCV0JXSE9ZTFNVRUZWS05PR0Q2UUNFWE5NV0s1V0JGVFNCN1NNR1NQNVlBSUdOQTdOUDRJNzQ2QkkzSjVHTFI0SDREUUo3TVk3WVdWR1dPR0lSSkQzQ1pBR09ER0RXUVRFM0pBRFFVQ0lHWkFNRUozM1pTSUkiLCJhY2Nlc3NUb2tlbiI6bnVsbH0sIm5ldyI6dHJ1ZX0sCiJyZXF1ZXN0IjoKeyJyZXF1ZXN0SWQiOiJFZHdSZXF1ZXN0SWQuOTgzNTc4NmUtZWYwZi00ZGI1LTg2NTktM2Q1M2I5MWMwOWI5IiwibG9jYWxlIjoiZW4tVVMiLCJ0eXBlIjoiSW50ZW50UmVxdWVzdCIsInRpbWVzdGFtcCI6MTQ5OTgxNzczMTAwNiwiaW50ZW50Ijp7Im5hbWUiOiJMaXN0ZW5Ub0F1ZGlvUGxheWxpc3QiLCJzbG90cyI6eyJBdWRpb1BsYXlsaXN0Ijp7Im5hbWUiOiJBdWRpb1BsYXlsaXN0IiwidmFsdWUiOm51bGx9fX19LCJjb250ZXh0Ijp7IlN5c3RlbSI6IHsiYXBwbGljYXRpb24iOiB7ImFwcGxpY2F0aW9uSWQiOiAiYXBwbGljYXRpb25JZCJ9LCAidXNlciI6eyJ1c2VySWQiOiAidXNlcklkIiwicGVybWlzc2lvbnMiOiB7ImNvbnNlbnRUb2tlbiI6ICJjb25zZW50VG9rZW4ifSwiYWNjZXNzVG9rZW4iOiAiYWNjZXNzVG9rZW4ifSwiZGV2aWNlIjogeyAiZGV2aWNlSWQiOiAiZGV2aWNlSWQiLCJzdXBwb3J0ZWRJbnRlcmZhY2VzIjp7fSB9LCJhcGlFbmRwb2ludCI6ICJhcGlFbmRwb2ludCJ9fX0=', u'resource': u'/', u'requestContext': {u'resourceId': u'xlhonv5bs4', u'apiId': u'10ytl8zmmk', u'resourcePath': u'/', u'httpMethod': u'POST', u'requestId': u'5a62e4a5-6695-11e7-a03a-818eacac2ac1', u'path': u'/dev', u'accountId': u'058100245157', u'identity': {u'apiKey': u'', u'userArn': None, u'cognitoAuthenticationType': None, u'accessKey': None, u'caller': None, u'userAgent': u'Apache-HttpClient/UNAVAILABLE (Java/1.8.0_112)', u'user': None, u'cognitoIdentityPoolId': None, u'cognitoIdentityId': None, u'cognitoAuthenticationProvider': None, u'sourceIp': u'72.21.217.134', u'accountId': None}, u'stage': u'dev'}, u'queryStringParameters': None, u'httpMethod': u'POST', u'pathParameters': None, u'headers': {u'Content-Type': u'application/json; charset=utf-8', u'Via': u'1.1 df525f161427706280f9273ae7f4dafa.cloudfront.net (CloudFront)', u'CloudFront-Is-Desktop-Viewer': u'true', u'CloudFront-Is-SmartTV-Viewer': u'false', u'SignatureCertChainUrl': u'https://s3.amazonaws.com/echo.api/echo-api-cert-4.pem', u'CloudFront-Is-Mobile-Viewer': u'false', u'X-Forwarded-For': u'72.21.217.134, 54.239.145.71', u'CloudFront-Viewer-Country': u'US', u'X-Forwarded-Port': u'443', u'Accept': u'application/json', u'User-Agent': u'Apache-HttpClient/UNAVAILABLE (Java/1.8.0_112)', u'X-Amzn-Trace-Id': u'Root=1-59656703-1a1d5f1217c9ecc44803b0a8', u'Accept-Charset': u'utf-8', u'Host': u'10ytl8zmmk.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'sYBEQBuIhuJjIR2LmdLAdRvfbyoyaJ-LkELupy9Oo8OKLW8qag28Hw==', u'CloudFront-Is-Tablet-Viewer': u'false', u'Signature': u'm2eIpGimF89ZSelexTTcRLe61Fygz0qi3dbdf0/rZGmQkvTID56yZlopAr8/hIiMowCD085yZFs+kgC5XgmZubh3ZR82uB0xI0wmtA97w6pIr8xBjpKD8A6s9EoDaxQJUTzS60+4T/LT+dLH5kA/UrISH6/6JofK0RDu3VW4KMv9qWAw4Dd9AAn1OzpzLttWKtplWtLFAzNpctpZAfbmnV0QQE8XDozVWRjgYLntmcku6Tugu3FQrmVvQTZOQSbX6DqtZOR1NP4n/yuBX7HB2mTDbhbCeQ3n8hVbYZmTd6hLHdIRskQmFSu5rNfCxyFx4wxSKK1SObCdNk8ZMrclcg==', u'CloudFront-Forwarded-Proto': u'https'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': True}
[1499817731177] 'NoneType' object is not callable
[1499817831397] [DEBUG] 2017-07-12T00:03:51.385Z 96235e34-6695-11e7-b2cf-a3d7dd806810 Zappa Event: {u'account': u'058100245157', u'region': u'us-east-1', u'detail': {}, u'detail-type': u'Scheduled Event', u'source': u'aws.events', u'version': u'0', u'time': u'2017-07-12T00:03:42Z', u'id': u'a3639010-e43c-425d-b67e-13b73da90aef', u'resources': [u'arn:aws:events:us-east-1:058100245157:rule/kodi-alexa-mast-dev-zappa-keep-warm-handler.keep_warm_callback']}
[1499817831397] [DEBUG] 2017-07-12T00:03:51.397Z 96235e34-6695-11e7-b2cf-a3d7dd806810 Zappa Event: {}
[1499817972898] /var/task/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
[1499817973020] [DEBUG] 2017-07-12T00:06:13.20Z e9e74f12-6695-11e7-b77f-d5add2389c86 Zappa Event: {u'body': None, u'resource': u'/', u'requestContext': {u'resourceId': u'xlhonv5bs4', u'apiId': u'10ytl8zmmk', u'resourcePath': u'/', u'httpMethod': u'GET', u'requestId': u'e9e10e01-6695-11e7-a888-55ca982bf491', u'path': u'/dev', u'accountId': u'058100245157', u'identity': {u'apiKey': u'', u'userArn': None, u'cognitoAuthenticationType': None, u'accessKey': None, u'caller': None, u'userAgent': u'python-requests/2.18.1', u'user': None, u'cognitoIdentityPoolId': None, u'cognitoIdentityId': None, u'cognitoAuthenticationProvider': None, u'sourceIp': u'76.205.205.107', u'accountId': None}, u'stage': u'dev'}, u'queryStringParameters': None, u'httpMethod': u'GET', u'pathParameters': None, u'headers': {u'Via': u'1.1 54af7a85eaa955992a413f37317dab25.cloudfront.net (CloudFront)', u'Accept-Encoding': u'gzip, deflate', u'CloudFront-Is-SmartTV-Viewer': u'false', u'CloudFront-Forwarded-Proto': u'https', u'X-Forwarded-For': u'76.205.205.107, 54.182.236.93', u'CloudFront-Viewer-Country': u'US', u'Accept': u'*/*', u'User-Agent': u'python-requests/2.18.1', u'X-Amzn-Trace-Id': u'Root=1-596567f3-1fda61935ce9fa166c1b555d', u'Host': u'10ytl8zmmk.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'8yLUq1Sqr_muQXH3AP9X-a9bv9fWuSnFiQQfUG45CPIaA5E0hC9fYw==', u'CloudFront-Is-Tablet-Viewer': u'false', u'X-Forwarded-Port': u'443', u'CloudFront-Is-Mobile-Viewer': u'false', u'CloudFront-Is-Desktop-Viewer': u'true'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': False}
[1499817973038] [INFO] 2017-07-12T00:06:13.38Z e9e74f12-6695-11e7-b77f-d5add2389c86 76.205.205.107 - - [12/Jul/2017:00:06:13 +0000] "GET / HTTP/1.1" 405 178 "" "python-requests/2.18.1" 0/17.498
[1499818058196] [2017-07-12 00:07:38,196] ERROR in c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\Flask\flask\app: Exception on / [POST]
[1499818058196] Traceback (most recent call last):
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\Flask\flask\app.py", line 1982, in wsgi_app
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\Flask\flask\app.py", line 1614, in full_dispatch_request
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\Flask\flask\app.py", line 1517, in handle_user_exception
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\Flask\flask\app.py", line 1612, in full_dispatch_request
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\Flask\flask\app.py", line 1598, in dispatch_request
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\flask-ask\flask_ask\core.py", line 571, in _flask_view_func
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\flask-ask\flask_ask\core.py", line 533, in _alexa_request
[1499818058196] File "c:\users\mtwel\appdata\local\temp\pip-build-osxdhq\aniso8601\aniso8601\time.py", line 120, in parse_datetime
[1499818058196] AttributeError: 'int' object has no attribute 'split'
[1499818058197] [INFO] 2017-07-12T00:07:38.197Z 1d483bf3-6696-11e7-aaab-1d55f72e128b 72.21.217.155 - - [12/Jul/2017:00:07:38 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/UNAVAILABLE (Java/1.8.0_112)" 0/121.446
[1499818928261] /var/task/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
[1499818928399] [DEBUG] 2017-07-12T00:22:08.399Z 2358e542-6698-11e7-8c10-c5d6601e0900 Zappa Event: {u'body': None, u'resource': u'/', u'requestContext': {u'resourceId': u'xlhonv5bs4', u'apiId': u'10ytl8zmmk', u'resourcePath': u'/', u'httpMethod': u'GET', u'requestId': u'235207a4-6698-11e7-ae4d-d70665c567e1', u'path': u'/dev', u'accountId': u'058100245157', u'identity': {u'apiKey': u'', u'userArn': None, u'cognitoAuthenticationType': None, u'accessKey': None, u'caller': None, u'userAgent': u'python-requests/2.18.1', u'user': None, u'cognitoIdentityPoolId': None, u'cognitoIdentityId': None, u'cognitoAuthenticationProvider': None, u'sourceIp': u'76.205.205.107', u'accountId': None}, u'stage': u'dev'}, u'queryStringParameters': None, u'httpMethod': u'GET', u'pathParameters': None, u'headers': {u'Via': u'1.1 e1ca399e0ee2ac8c87f83689075e9136.cloudfront.net (CloudFront)', u'Accept-Encoding': u'gzip, deflate', u'CloudFront-Is-SmartTV-Viewer': u'false', u'CloudFront-Forwarded-Proto': u'https', u'X-Forwarded-For': u'76.205.205.107, 54.239.170.19', u'CloudFront-Viewer-Country': u'US', u'Accept': u'*/*', u'User-Agent': u'python-requests/2.18.1', u'X-Amzn-Trace-Id': u'Root=1-59656baf-2086322c4f5aa8306ec550aa', u'Host': u'10ytl8zmmk.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'UkDJhfHCRTHsNHtjlHHx1NJMe49XogBCXvN90wD_eEN20X2qzYuAnw==', u'CloudFront-Is-Tablet-Viewer': u'false', u'X-Forwarded-Port': u'443', u'CloudFront-Is-Mobile-Viewer': u'false', u'CloudFront-Is-Desktop-Viewer': u'true'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': False}
[1499818928417] [INFO] 2017-07-12T00:22:08.417Z 2358e542-6698-11e7-8c10-c5d6601e0900 76.205.205.107 - - [12/Jul/2017:00:22:08 +0000] "GET / HTTP/1.1" 405 178 "" "python-requests/2.18.1" 0/1.507
[1499820774584] /var/task/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
[1499820774737] [DEBUG] 2017-07-12T00:52:54.737Z 6fd04259-669c-11e7-8a18-bd82df882085 Zappa Event: {u'account': u'058100245157', u'region': u'us-east-1', u'detail': {}, u'detail-type': u'Scheduled Event', u'source': u'aws.events', u'version': u'0', u'time': u'2017-07-12T00:52:48Z', u'id': u'66e08b01-c69b-4815-b992-75909f620784', u'resources': [u'arn:aws:events:us-east-1:058100245157:rule/kodi-alexa-mast-dev-zappa-keep-warm-handler.keep_warm_callback']}
[1499820774738] [DEBUG] 2017-07-12T00:52:54.737Z 6fd04259-669c-11e7-8a18-bd82df882085 Zappa Event: {}
[1499820800544] [DEBUG] 2017-07-12T00:53:20.544Z 7feae081-669c-11e7-bc77-f50a9f12366b Zappa Event: {u'body': None, u'resource': u'/', u'requestContext': {u'resourceId': u'y5wn1tw6uf', u'apiId': u'2cxyf5qls2', u'resourcePath': u'/', u'httpMethod': u'GET', u'requestId': u'7fda65f1-669c-11e7-9399-6dad82c628d2', u'path': u'/dev', u'accountId': u'058100245157', u'identity': {u'apiKey': u'', u'userArn': None, u'cognitoAuthenticationType': None, u'accessKey': None, u'caller': None, u'userAgent': u'python-requests/2.18.1', u'user': None, u'cognitoIdentityPoolId': None, u'cognitoIdentityId': None, u'cognitoAuthenticationProvider': None, u'sourceIp': u'76.205.205.107', u'accountId': None}, u'stage': u'dev'}, u'queryStringParameters': None, u'httpMethod': u'GET', u'pathParameters': None, u'headers': {u'Via': u'1.1 42dcca982087d0c6a04e70643ad9cd19.cloudfront.net (CloudFront)', u'Accept-Encoding': u'gzip, deflate', u'CloudFront-Is-SmartTV-Viewer': u'false', u'CloudFront-Forwarded-Proto': u'https', u'X-Forwarded-For': u'76.205.205.107, 54.239.170.19', u'CloudFront-Viewer-Country': u'US', u'Accept': u'*/*', u'User-Agent': u'python-requests/2.18.1', u'X-Amzn-Trace-Id': u'Root=1-59657300-565165874fb530f876cd154c', u'Host': u'2cxyf5qls2.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'7xR8nAC-AAqV6nfbN8Grhf_G59CnXaUmfnZBZN9qlEUCgniKiQmcYw==', u'CloudFront-Is-Tablet-Viewer': u'false', u'X-Forwarded-Port': u'443', u'CloudFront-Is-Mobile-Viewer': u'false', u'CloudFront-Is-Desktop-Viewer': u'true'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': False}
[1499820800546] [INFO] 2017-07-12T00:53:20.546Z 7feae081-669c-11e7-bc77-f50a9f12366b 76.205.205.107 - - [12/Jul/2017:00:53:20 +0000] "GET / HTTP/1.1" 405 178 "" "python-requests/2.18.1" 0/2.245
[1499821216309] [2017-07-12 01:00:16,308] ERROR in c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app: Exception on / [POST]
[1499821216309] Traceback (most recent call last):
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1982, in wsgi_app
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1614, in full_dispatch_request
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1517, in handle_user_exception
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1612, in full_dispatch_request
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1598, in dispatch_request
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 591, in _flask_view_func
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 536, in _alexa_request
[1499821216309] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 562, in _parse_timestamp
[1499821216309] ValueError: year is out of range
[1499821216309] [INFO] 2017-07-12T01:00:16.309Z 77a2b594-669d-11e7-b661-e3bc8380a7ff 72.21.217.96 - - [12/Jul/2017:01:00:16 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/UNAVAILABLE (Java/1.8.0_112)" 0/148.924
[1499821251064] [2017-07-12 01:00:51,063] ERROR in c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app: Exception on / [POST]
[1499821251064] Traceback (most recent call last):
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1982, in wsgi_app
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1614, in full_dispatch_request
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1517, in handle_user_exception
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1612, in full_dispatch_request
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1598, in dispatch_request
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 591, in _flask_view_func
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 536, in _alexa_request
[1499821251064] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 562, in _parse_timestamp
[1499821251064] ValueError: year is out of range
[1499821251064] [INFO] 2017-07-12T01:00:51.64Z 8c60c4a1-669d-11e7-ae01-47c763e47b34 72.21.217.181 - - [12/Jul/2017:01:00:51 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/UNAVAILABLE (Java/1.8.0_112)" 0/106.95
[1499821519057] [2017-07-12 01:05:19,052] ERROR in c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app: Exception on / [POST]
[1499821519057] Traceback (most recent call last):
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1982, in wsgi_app
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1614, in full_dispatch_request
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1517, in handle_user_exception
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1612, in full_dispatch_request
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\Flask\flask\app.py", line 1598, in dispatch_request
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 591, in _flask_view_func
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 536, in _alexa_request
[1499821519057] File "c:\users\mtwel\appdata\local\temp\pip-build-f1grdt\flask-ask\flask_ask\core.py", line 562, in _parse_timestamp
[1499821519057] ValueError: year is out of range
Reply
@zrikz, Flask-Ask 0.9.5 is broken. They are trying to fix a weird issue with the service simulator and it got released early. Use a version of Flask-Ask prior to 0.9.5.
Reply
@jingal ah thank you very much. Been bashing my head against a wall for a while thinking I had messed up somewhere.. I'll get a new version later tonight or early tomorrow and report results.
Reply
  • 1
  • 105
  • 106
  • 107(current)
  • 108
  • 109
  • 176

Logout Mark Read Team Forum Stats Members Help
Kanzi: Amazon Alexa skill for Kodi15