2017-05-17, 22:54
@mcl22 (and any other German speakers), I've opened an issue on github for this. Any input, help, etc should be posted there.
(2017-05-18, 20:07)aplayerg Wrote: So, I went through the README again and ended up with the same issue. Something just isn't clicking for me. The only thing I might question is where to save kodi.config and where to run the python commands from when using zappa. I put the (edited) kodi.config file in the folder I grabbed from git (C:\kodi-alexa-master). I ran the zappa commands in the virtual environment (command line showed (venv)) from within the kodi-alexa-master folder.
(2017-05-18, 20:07)aplayerg Wrote: To me, it looks like the zappa deploy worked correctly as my Lambda console created a kodi-alexa-master-dev Function and added a Role to the IAM user that I set up and I got the URL at the end. Then I put that URL in the Alexa Skill Configuration with HTTPS and North America selected. Do I need to set certain permissions on that page? I didn't see a mention of those in the README or howtogeek guide, so I just left them unchecked. I'm at a loss. Is there anything I can provide that may be able to narrow down where the issue is?
zappa tail dev
(2017-05-19, 05:50)jingai Wrote: Try to issue a request and then do:
Code:zappa tail dev
If it's hitting the skill at all, you should see something there.
(2017-05-19, 17:54)jingai Wrote: I'll need to see the log then to figure out what's going on. PM me if you prefer.
[1495211661987] [DEBUG] 2017-05-19T16:34:21.973Z 032d2e42-3cb1-11e7-bb7a-912b6efc9e0c Zappa Event: {u'body': u'eyJ2ZXJzaW9uIjoiMS4wIiwic2Vzc2lvbiI6eyJuZXciOnRydWUsInNlc3Npb25JZCI6IlNlc3Npb25JZC41NDJkMDVlMS1hYTA4LTQxMTEtYjQ5MS1jMzhiMTk0MWU4NTMiLCJhcHBsaWNhdGlvbiI6eyJhcHBsaWNhdGlvbklkIjoiYW16bjEuYXNrLnNraWxsLjg5MTM3NDEzLTg1OTctNDFiYS1hZTZjLWQ2ZmI1ODY0ZTYyNSJ9LCJhdHRyaWJ1dGVzIjp7fSwidXNlciI6eyJ1c2VySWQiOiJhbXpuMS5hc2suYWNjb3VudC5BRTZQU0dVQVFIVUw2U09VMkZMTTNPVkhSRFJVVktWUVdDT1JXV1dDQU1VVU1GS1lUUkhQSkRKS0RZRUhYR0paSVBRQ0M0Vk01SUlBNkxJN0QyRENRTjJBRjc0RTVOWVU3N1VTWUVYS1VPUVBVVUo2QkNMWDRJTVdNM1JGM1hISE1aRVNCWllONVE3VFdHMzRNSzZDTVI0VVdLSVZBTVdBQ1ZUTVZFM0lWWExRWVZCNkdVWlVUSFhZRkRYR1FDMjdMVzJSNk5VUk02TUhPUkEifX0sInJlcXVlc3QiOnsidHlwZSI6IkludGVudFJlcXVlc3QiLCJyZXF1ZXN0SWQiOiJFZHdSZXF1ZXN0SWQuZjFmYzFmNDEtZTE4Yy00MzFmLWFlNjItZjMzYTBjOTZiMzAzIiwidGltZXN0YW1wIjoiMjAxNy0wNS0xOVQxNjozNDoyMVoiLCJsb2NhbGUiOiJlbi1VUyIsImludGVudCI6eyJuYW1lIjoiQmFjayJ9fX0=', u'resource': u'/', u'requestContext': {u'resourceId': u'5u57lfykt7', u'apiId': u'fizqc4zx46', u'resourcePath': u'/', u'httpMethod': u'POST', u'requestId': u'0323df64-3cb1-11e7-a2e8-99b76f4de407', u'path': u'/dev', u'accountId': u'466605846552', 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'73.23.237.339', 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 9e644b668b618795f8d86bdfb8b8f740.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'73.23.237.339, 53.233.345.35', 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-591f1e8d-1664a87626f9de571f9167ea', u'Accept-Charset': u'utf-8', u'Host': u'fizqc4zx46.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'J5wKS4xwLnYqPda0JjEGoKGAHhwFB1U0hxSALSdRh8V8pjswDHrI7Q==', u'CloudFront-Is-Tablet-Viewer': u'false', u'Signature': u'GBW+eNqrZDzHLRgSadoueiLKTQsR0lzP4Ih0C298RG79IJx/odffdrYAxPHf5M0H6yNmnTHOmPqaJL+RV1mSRMcSwxXb8dmpuct92vX3JInuRqBo4GN/xp0an5vcdj+A8+C1RzX5J8kFGX6XFo+uvhGH/cf8lHGopsTAuUqhjSGMbQ1QkEMq4i/+ZPPxmNFdSoCH8beFczsRWR3ni/AVSvPNl7VLfGqyrbNqICKyLucXcWOBJPu3ycKUBQszB5gVYNE9ak3TVMlKjd6JCPxJy+5FZtZNuCVjgqYavCVR2piMeXbiLPoTGvfIbdWH8acdhg1aSmx/hv1sY7KKdFrdHw==', u'CloudFront-Forwarded-Proto': u'https'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': True}
[1495211661987] 'NoneType' object is not callable
[1495211746287] [DEBUG] 2017-05-19T16:35:46.268Z 35632f59-3cb1-11e7-ac5f-47259560c847 Zappa Event: {u'account': u'466605846552', 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-05-19T16:35:45Z', u'id': u'2d46d010-e719-4117-945c-0f667c61f672', u'resources': [u'arn:aws:events:us-east-1:466605846552:rule/kodi-alexa-mast-dev-zappa-keep-warm-handler.keep_warm_callback']}
[1495211746287] [DEBUG] 2017-05-19T16:35:46.268Z 35632f59-3cb1-11e7-ac5f-47259560c847 Zappa Event: {}
[1495211986147] [DEBUG] 2017-05-19T16:39:46.130Z c43c8d77-3cb1-11e7-aca8-8166c93b061d Zappa Event: {u'account': u'466605846552', 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-05-19T16:39:45Z', u'id': u'd6655249-2c69-4d48-a7fd-738674c7801d', u'resources': [u'arn:aws:events:us-east-1:466605846552:rule/kodi-alexa-mast-dev-zappa-keep-warm-handler.keep_warm_callback']}
[1495211986147] [DEBUG] 2017-05-19T16:39:46.131Z c43c8d77-3cb1-11e7-aca8-8166c93b061d Zappa Event: {}
(2017-05-20, 08:02)mcl22 Wrote: In those cases when she plays bonnie tyler instead of boney m. the app also tells me bonnie tyler. That's what I meant. She "decides" herself.
When using play she (in this case) can't match anything and gives the heard string to the skill. And then the skill tries to match the right thing. And in these cases one can also see that Alexa actually understood me right. The app history tells boney m. (even with the dot after the m) and the skill log does, too.
But going through the cards is a good advice. I'm gonna do that more often now.
(2017-05-20, 08:02)mcl22 Wrote: @jingai, so is there no way to do anything about it? Perhaps by adding more samples to the slots or something else? Just want to know if I can do something to help (I guess others are going to run into this problem, too).
(2017-05-20, 08:02)mcl22 Wrote: But just to show how far this goes. The problem seems to exist for all slots. That's why I actually can't use something like "play album from artist". Some example: "Alexa, ask kodi to play album dopamin by böhse onkelz". An error occurs because she matches böhse onkelz but not an album called "do or die" by böhse onkelz. When trying to play the album "Schwarz" she tries "Schlachtenlärm" by another artist. And so on. She'd rather take something from the samples even if it's not even close to similar to what I said than passing the string to the skill. That happens for movies, too.
(2017-05-20, 08:02)mcl22 Wrote: If I only say "spiel das album schwarz" without an artist, she chooses the album swagger. If I try the same sentence on the testing platform it succeeds but the log say "searching for album schwartz" with a "t" so the fuzzy matching is needed. Schwarz without the "t" as written in the test would be a simple match.
Although theres this different behavior between the written test and my spoken words it can't be about my pronounciation or something because if I just say "Alexa was ist schwarz" (what is black) she gives me an answer and the app tells me that she understood "was ist schwarz".
(2017-05-20, 08:02)mcl22 Wrote: And one more thing The umlaut problem is solved. But we do have another special character in german, the "ß". And I do again get the UnicodeEncodeError in the log when trying to call something including a "ß". And this can happen pretty often because the character is used in words like weiß (white) or daß (that).