Guys, i have setup the skill now and when i am tzesting it on the skill page it recogines my utterance question:
Question "Welche serien gibt es" (english: which seriesdo i have)
Service request is:
Code:
{
"session": {
"sessionId": "SessionId.[removed]",
"application": {
"applicationId": "amzn1.ask.skill.[id removed ]"
},
"attributes": {},
"user": {
"userId": "amzn1.ask.account.[ID removed]"
},
"new": true
},
"request": {
"type": "IntentRequest",
"requestId": "EdwRequestId.[removed]",
"locale": "de-DE",
"timestamp": "2017-02-14T13:14:05Z",
"intent": {
"name": "WhatNewShows",
"slots": {}
}
},
"version": "1.0"
}
The name is "WhatNewShows" which should be correct, isnt it?
Sadly the service resoponse is:
Code:
The remote endpoint could not be called, or the response it returned was invalid.
In the cloud log on this is it:
Code:
Sending request to http://[host]:[port]/jsonrpc
No JSON object could be decoded: ValueError
Traceback (most recent call last):
File "/var/task/wsgi.py", line 1933, in lambda_handler
return on_intent(event['request'], event['session'])
File "/var/task/wsgi.py", line 1900, in on_intent
return one_intent[1](intent_slots)
File "/var/task/wsgi.py", line 1410, in alexa_watch_next_episode
shows = kodi.GetTvShows()
File "/var/task/kodi.py", line 724, in GetTvShows
return SendCommand(RPCString("VideoLibrary.GetTVShows"))
File "/var/task/kodi.py", line 143, in SendCommand
return json.loads(r.text)
File "/usr/lib64/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
The host is online and i can reach it from the internet! Also the slot generator works, so my port forwarding should be fine.
Any hint what i am doing wrong?
thanks
pOpY