programmerben / KodiKontrol

Alexa skill for interacting with Kodi, CouchPotato, and SickBeard/SickRage
10 stars 1 forks source link

couchpotato not working #4

Open naseemr opened 8 years ago

naseemr commented 8 years ago

Hi Ben, I get the following log from the server : POST /couchpotato 200 473.872 ms - 160

Also the test result from Amazon :+1: { "version": "1.0", "response": { "outputSpeech": { "type": "PlainText", "text": "There was an error processing this request with couch potato" }, "shouldEndSession": true }, "sessionAttributes": {} }

benburkhart1 commented 8 years ago

Make sure you filled in the config.js and can connect to the couchpotato server from wherever you're running my software from. For instance, on my machine I could type:

telnet mydomain.com 5050

and see that it connects to know that everything is setup properly with firewalls.

iprebeg commented 8 years ago

Same here, kodi and sickrage still work, but couch died, can find any trace of errors in the logs

server reports 200s on /couchpotato, port telnetable

Here's HTTP follow from tcpdump between server and couch api, doesn't look quite right to me, no results back from couch

GET /api/[REDACTED KEY]/search?q=download%20matrix HTTP/1.1 Accept: application/json host: localhost:5050 Connection: keep-alive

HTTP/1.1 200 OK Content-Length: 17 Vary: Accept-Encoding Server: TornadoServer/4.1 Etag: "[REDACTED ETAG]" Date: Wed, 26 Oct 2016 19:53:03 GMT Content-Type: application/json; charset=UTF-8

{"success": true}

EDIT: Figured it out, if you say "Alexa tell couch potato Matrix", it will work. For some reason, skill passes "Download" as a search string into CouchPotato and it returns back empty. Not sure yet if Alexa or the server is the culprit, but since there was no changes in server, I'd assume something is broken up there in Alexa.