2017-06-16, 16:09
I went to the Service Simulator and tried "Open Kodi". This resulted in "There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error". The log results for that test were as follows:
[1497621678259] [DEBUG] 2017-06-16T14:01:18.259Z 44e03776-529c-11e7-881b-ddfc80c9f253 Zappa Event: {u'body': u'eyJ2ZXJzaW9uIjo...iJlbi1VUyJ9fQ==', u'resource': u'/', u'requestContext': {u'resourceId': u'j06tsdmn60', u'apiId': u'z06kpvwwea', u'resourcePath': u'/', u'httpMethod': u'POST', u'requestId': u'44c841c1-529c-11e7-8721-55195c0872c9', u'path': u'/dev', u'accountId': u'781845700447', 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_131)', u'user': None, u'cognitoIdentityPoolId': None, u'cognitoIdentityId': None, u'cognitoAuthenticationProvider': None, u'sourceIp': u'72.1.1.141', 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 440f7503597ca64245c4258c03b08e0c.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.1.1.141, 54.1.1.67', 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_131)', u'X-Amzn-Trace-Id': u'Root=1-5943e4ae-448db8b07238f30850808b1b', u'Accept-Charset': u'utf-8', u'Host': u'z06kpvwwea.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'OwkRTN_wpTErDdoDZ3TpbWDurIM3PZvS64_ASR-5QqLoh3-KkDDRHA==', u'CloudFront-Is-Tablet-Viewer': u'false', u'Signature': u'N9TDcczKOoy...UXYYKH9pg/77RQ==', u'CloudFront-Forwarded-Proto': u'https'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': True}
[1497621678259] 'NoneType' object is not callable
I also copy/pasted the request from the Service Simulator into a Lambda Test Event and ran the test there. This reulted in a result of "null". The log events for that test were as follows:
[1497621885438] [DEBUG] 2017-06-16T14:04:45.423Z c05c4e19-529c-11e7-a396-01e120fd3350 Zappa Event: {u'session': {u'application': {u'applicationId': u'amzn1.ask.skill.b5c6ff22-2151-4bf1-baa2-a474ad0829bd'}, u'sessionId': u'SessionId.bd7e7323-f89a-4e7b-969a-6decb8dbab54', u'user': {u'userId': u'amzn1.ask.account.AGHLN...FGEEOQJA'}, u'new': True, u'attributes': {}}, u'request': {u'locale': u'en-US', u'timestamp': u'2017-06-16T13:53:00Z', u'type': u'LaunchRequest', u'requestId': u'EdwRequestId.ebf1db66-22d0-4e90-b5fd-f20c5300ab13'}, u'version': u'1.0'}
(Note: I truncated some of the longer strings, and ID fields with "...")
Any ideas?
[1497621678259] [DEBUG] 2017-06-16T14:01:18.259Z 44e03776-529c-11e7-881b-ddfc80c9f253 Zappa Event: {u'body': u'eyJ2ZXJzaW9uIjo...iJlbi1VUyJ9fQ==', u'resource': u'/', u'requestContext': {u'resourceId': u'j06tsdmn60', u'apiId': u'z06kpvwwea', u'resourcePath': u'/', u'httpMethod': u'POST', u'requestId': u'44c841c1-529c-11e7-8721-55195c0872c9', u'path': u'/dev', u'accountId': u'781845700447', 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_131)', u'user': None, u'cognitoIdentityPoolId': None, u'cognitoIdentityId': None, u'cognitoAuthenticationProvider': None, u'sourceIp': u'72.1.1.141', 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 440f7503597ca64245c4258c03b08e0c.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.1.1.141, 54.1.1.67', 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_131)', u'X-Amzn-Trace-Id': u'Root=1-5943e4ae-448db8b07238f30850808b1b', u'Accept-Charset': u'utf-8', u'Host': u'z06kpvwwea.execute-api.us-east-1.amazonaws.com', u'X-Forwarded-Proto': u'https', u'X-Amz-Cf-Id': u'OwkRTN_wpTErDdoDZ3TpbWDurIM3PZvS64_ASR-5QqLoh3-KkDDRHA==', u'CloudFront-Is-Tablet-Viewer': u'false', u'Signature': u'N9TDcczKOoy...UXYYKH9pg/77RQ==', u'CloudFront-Forwarded-Proto': u'https'}, u'stageVariables': None, u'path': u'/', u'isBase64Encoded': True}
[1497621678259] 'NoneType' object is not callable
I also copy/pasted the request from the Service Simulator into a Lambda Test Event and ran the test there. This reulted in a result of "null". The log events for that test were as follows:
[1497621885438] [DEBUG] 2017-06-16T14:04:45.423Z c05c4e19-529c-11e7-a396-01e120fd3350 Zappa Event: {u'session': {u'application': {u'applicationId': u'amzn1.ask.skill.b5c6ff22-2151-4bf1-baa2-a474ad0829bd'}, u'sessionId': u'SessionId.bd7e7323-f89a-4e7b-969a-6decb8dbab54', u'user': {u'userId': u'amzn1.ask.account.AGHLN...FGEEOQJA'}, u'new': True, u'attributes': {}}, u'request': {u'locale': u'en-US', u'timestamp': u'2017-06-16T13:53:00Z', u'type': u'LaunchRequest', u'requestId': u'EdwRequestId.ebf1db66-22d0-4e90-b5fd-f20c5300ab13'}, u'version': u'1.0'}
(Note: I truncated some of the longer strings, and ID fields with "...")
Any ideas?