I set up CouchPotato to notify XBMC to update the library and this works perfectly. I tried to set up Sonarr to do the same but when I click test it fails.
I am using Sonarr, CouchPotato and XBMC on a x86_64 QNAP TS-470 Pro NAS. I am mentioning CouchPotato simply to demonstrate that one works but the other doesn’t, I understand that Sonarr and CouchPotato have nothing to do with each other.
Please advise how I can collect debug info to see what’s happening? I will paste the info here and would appreciate if somebody could tell me what’s wrong with Sonarr as it’s clearly a problem with the app since CouchPotato works fine…
Many thanks, this app is fantastic!
More info here: ((debug logs))
Thanks!
Thanks for replying with the instructions to get the log.
Here I cannot paste the log, it is too large, how can I do? I tried to test the xbmc connection before collecting the log to make sure it’s close to the top. Thanks for helping me.
Come to think of it, trace logs would be better.
- Enable trace logging
- Clear log files
- Test XBMC
- Use Pastebin/hastebin/xbmclogs to upload the logs.
Thank you, here is the trace log for doing test of xbmc notification:
15-1-15 17:59:54.8|Debug|XbmcService|Determining version of XBMC Host: 10.0.0.100:8080
15-1-15 17:59:54.8|Debug|RestSharpExtensions|Validating Responses from [POST] [http://10.0.0.100:8080/jsonrpc] status: [OK]
15-1-15 17:59:54.8|Trace|XbmcJsonApiProxy|Response: {“id”:10,“jsonrpc”:“2.0”,“result”:{“version”:{“major”:6,“minor”:14,“patch”:3}}}
15-1-15 17:59:54.8|Debug|XbmcJsonApiProxy|Looking for error in response: RestSharp.RestResponse
15-1-15 17:59:54.8|Debug|XbmcService|Getting version from response: {“id”:10,“jsonrpc”:“2.0”,“result”:{“version”:{“major”:6,“minor”:14,“patch”:3}}}
15-1-15 17:59:54.8|Debug|XbmcService|Version is: 6.14.3
15-1-15 17:59:54.8|Debug|RestSharpExtensions|Validating Responses from [POST] [http://10.0.0.100:8080/jsonrpc] status: [OK]
15-1-15 17:59:54.8|Trace|XbmcJsonApiProxy|Response: {“error”:{“code”:-32602,“data”:{“method”:“GUI.ShowNotification”,“stack”:{“message”:“Value between 1500 (inclusive) and 2147483647 (inclusive) expected but 1000 received”,“name”:“displaytime”,“type”:“integer”}},“message”:“Invalid params.”},“id”:10,“jsonrpc”:“2.0”}
15-1-15 17:59:54.8|Debug|XbmcJsonApiProxy|Looking for error in response: RestSharp.RestResponse
15-1-15 17:59:54.8|Error|XbmcService|Unable to send test message: Error reading string. Unexpected token: StartObject. Path ‘error.data’, line 1, position 32.
Newtonsoft.Json.JsonReaderException: Error reading string. Unexpected token: StartObject. Path ‘error.data’, line 1, position 32.
at Newtonsoft.Json.JsonReader.ReadAsStringInternal () [0x00000] in :0
at Newtonsoft.Json.JsonTextReader.ReadAsString () [0x00000] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00000] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in :0
15-1-15 17:59:54.9|Trace|NzbDroneErrorPipeline|Handling Exception
15-1-15 17:59:54.9|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
– Unable to send test message
Your display time for the notification is too low, needs to be at least 2 seconds (I’ll add validation to this on our end as well). Kodi enforces a 1.5 second minimum, but we use whole seconds to make it easier.
Who knew it would be something that simple? Thank you. It works now. Could you please add something near the box explaining minimum 2 seconds? I guess when you say you will add validation you mean if someone uses less than 2 seconds you give error message explaining, right? That would be good. Thanks for your help. The app is now everything I ever wanted.
Yeah, validation will show an error if they enter less than 2.
Glad it was that easy 
I’m glad too
Didn’t take too much of your time to help other more important issues. Thanks again.