{"action":"created","issue":{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1235","labels_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1235/labels{/name}","comments_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1235/comments","events_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1235/events","html_url":"https://github.com/SiCKRAGETV/sickrage-issues/issues/1235","id":68262574,"number":1235,"title":"Post Processing fails if unable to notify","user":{"login":"runjmc","id":6821328,"avatar_url":"https://avatars.githubusercontent.com/u/6821328?v=3","gravatar_id":"","url":"https://api.github.com/users/runjmc","html_url":"https://github.com/runjmc","followers_url":"https://api.github.com/users/runjmc/followers","following_url":"https://api.github.com/users/runjmc/following{/other_user}","gists_url":"https://api.github.com/users/runjmc/gists{/gist_id}","starred_url":"https://api.github.com/users/runjmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runjmc/subscriptions","organizations_url":"https://api.github.com/users/runjmc/orgs","repos_url":"https://api.github.com/users/runjmc/repos","events_url":"https://api.github.com/users/runjmc/events{/privacy}","received_events_url":"https://api.github.com/users/runjmc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/labels/1:%20Bug%20/%20issue","name":"1: Bug / issue","color":"fc2929"},{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/labels/3:%20Unconfirmed","name":"3: Unconfirmed","color":"aaaaaa"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-14T05:05:52Z","updated_at":"2015-04-14T13:47:06Z","closed_at":null,"body":"BRANCH: (master) / COMMIT: (281409d366b228a455879e02b2d55d3967db29e4) \r\n2.7.8 (default, Oct 20 2014, 15:05:19) [GCC 4.9.1]\r\n\r\nI have plex notification setup with a server and client.  If my plex client goes to sleep and SR tries to send a notification it fails and Post Processing fails and in the scheduler Post Processing shows alive as false and Post Processing stops running.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/comments/92853444","html_url":"https://github.com/SiCKRAGETV/sickrage-issues/issues/1235#issuecomment-92853444","issue_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1235","id":92853444,"user":{"login":"runjmc","id":6821328,"avatar_url":"https://avatars.githubusercontent.com/u/6821328?v=3","gravatar_id":"","url":"https://api.github.com/users/runjmc","html_url":"https://github.com/runjmc","followers_url":"https://api.github.com/users/runjmc/followers","following_url":"https://api.github.com/users/runjmc/following{/other_user}","gists_url":"https://api.github.com/users/runjmc/gists{/gist_id}","starred_url":"https://api.github.com/users/runjmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runjmc/subscriptions","organizations_url":"https://api.github.com/users/runjmc/orgs","repos_url":"https://api.github.com/users/runjmc/repos","events_url":"https://api.github.com/users/runjmc/events{/privacy}","received_events_url":"https://api.github.com/users/runjmc/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T13:47:06Z","updated_at":"2015-04-14T13:47:06Z","body":"2015-04-14 06:39:28 DEBUG    POSTPROCESSER :: 'Traceback (most recent call last):\\n  File \"/home/john/SickRage/sickbeard/scheduler.py\", line 97, in run\\n    self.action.run(self.force)\\n  File \"/home/john/SickRage/sickbeard/autoPostProcesser.py\", line 50, in run\\n    processTV.processDir(sickbeard.TV_DOWNLOAD_DIR)\\n  File \"/home/john/SickRage/sickbeard/processTV.py\", line 203, in processDir\\n    process_media(path, [video], nzbName, process_method, force, is_priority, result)\\n  File \"/home/john/SickRage/sickbeard/processTV.py\", line 504, in process_media\\n    result.result = processor.process()\\n  File \"/home/john/SickRage/sickbeard/postProcessor.py\", line 1059, in process\\n    notifiers.notify_download(ep_obj._format_pattern(\\'%SN - %Sx%0E - %EN - %QN\\'))\\n  File \"/home/john/SickRage/sickbeard/notifiers/__init__.py\", line 96, in notify_download\\n    n.notify_download(ep_name)\\n  File \"/home/john/SickRage/sickbeard/notifiers/plex.py\", line 64, in notify_download\\n    self._notify_pmc(ep_name, common.notifyStrings[common.NOTIFY_DOWNLOAD])\\n  File \"/home/john/SickRage/sickbeard/notifiers/plex.py\", line 56, in _notify_pmc\\n    force=True)\\n  File \"/home/john/SickRage/sickbeard/notifiers/****.py\", line 131, in _notify_****\\n    ****api = self._get_****_version(curHost, username, password)\\n  File \"/home/john/SickRage/sickbeard/notifiers/****.py\", line 88, in _get_****_version\\n    request = self._send_to_****(testCommand, host, username, password)\\n  File \"/home/john/SickRage/sickbeard/notifiers/****.py\", line 243, in _send_to_****\\n    response = urllib2.urlopen(req)\\n  File \"/usr/lib/python2.7/urllib2.py\", line 127, in urlopen\\n    return _opener.open(url, data, timeout)\\n  File \"/usr/lib/python2.7/urllib2.py\", line 404, in open\\n    response = self._open(req, data)\\n  File \"/usr/lib/python2.7/urllib2.py\", line 422, in _open\\n    \\'_open\\', req)\\n  File \"/usr/lib/python2.7/urllib2.py\", line 382, in _call_chain\\n    result = func(*args)\\n  File \"/usr/lib/python2.7/urllib2.py\", line 1199, in http_open\\n    return self.do_open(httplib.HTTPConnection, req)\\n  File \"/usr/lib/python2.7/urllib2.py\", line 1172, in do_open\\n    r = h.getresponse(buffering=True)\\n  File \"/usr/lib/python2.7/httplib.py\", line 1073, in getresponse\\n    response.begin()\\n  File \"/usr/lib/python2.7/httplib.py\", line 415, in begin\\n    version, status, reason = self._read_status()\\n  File \"/usr/lib/python2.7/httplib.py\", line 379, in _read_status\\n    raise BadStatusLine(line)\\nBadStatusLine: \\'\\'\\n'\r\nAABadStatusLine: ''\r\nAA    raise BadStatusLine(line)\r\nAA  File \"/usr/lib/python2.7/httplib.py\", line 379, in _read_status\r\nAA    version, status, reason = self._read_status()\r\nAA  File \"/usr/lib/python2.7/httplib.py\", line 415, in begin\r\nAA    response.begin()\r\nAA  File \"/usr/lib/python2.7/httplib.py\", line 1073, in getresponse\r\nAA    r = h.getresponse(buffering=True)\r\nAA  File \"/usr/lib/python2.7/urllib2.py\", line 1172, in do_open\r\nAA    return self.do_open(httplib.HTTPConnection, req)\r\nAA  File \"/usr/lib/python2.7/urllib2.py\", line 1199, in http_open\r\nAA    result = func(*args)\r\nAA  File \"/usr/lib/python2.7/urllib2.py\", line 382, in _call_chain\r\nAA    '_open', req)\r\nAA  File \"/usr/lib/python2.7/urllib2.py\", line 422, in _open\r\nAA    response = self._open(req, data)\r\nAA  File \"/usr/lib/python2.7/urllib2.py\", line 404, in open\r\nAA    return _opener.open(url, data, timeout)\r\nAA  File \"/usr/lib/python2.7/urllib2.py\", line 127, in urlopen\r\nAA    response = urllib2.urlopen(req)\r\nAA  File \"/home/john/SickRage/sickbeard/notifiers/****.py\", line 243, in _send_to_****\r\nAA    request = self._send_to_****(testCommand, host, username, password)\r\nAA  File \"/home/john/SickRage/sickbeard/notifiers/****.py\", line 88, in _get_****_version\r\nAA    ****api = self._get_****_version(curHost, username, password)\r\nAA  File \"/home/john/SickRage/sickbeard/notifiers/****.py\", line 131, in _notify_****\r\nAA    force=True)\r\nAA  File \"/home/john/SickRage/sickbeard/notifiers/plex.py\", line 56, in _notify_pmc\r\nAA    self._notify_pmc(ep_name, common.notifyStrings[common.NOTIFY_DOWNLOAD])\r\nAA  File \"/home/john/SickRage/sickbeard/notifiers/plex.py\", line 64, in notify_download\r\nAA    n.notify_download(ep_name)\r\nAA  File \"/home/john/SickRage/sickbeard/notifiers/__init__.py\", line 96, in notify_download\r\nAA    notifiers.notify_download(ep_obj._format_pattern('%SN - %Sx%0E - %EN - %QN'))\r\nAA  File \"/home/john/SickRage/sickbeard/postProcessor.py\", line 1059, in process\r\nAA    result.result = processor.process()\r\nAA  File \"/home/john/SickRage/sickbeard/processTV.py\", line 504, in process_media\r\nAA    process_media(path, [video], nzbName, process_method, force, is_priority, result)\r\nAA  File \"/home/john/SickRage/sickbeard/processTV.py\", line 203, in processDir\r\nAA    processTV.processDir(sickbeard.TV_DOWNLOAD_DIR)\r\nAA  File \"/home/john/SickRage/sickbeard/autoPostProcesser.py\", line 50, in run\r\nAA    self.action.run(self.force)\r\nAA  File \"/home/john/SickRage/sickbeard/scheduler.py\", line 97, in run\r\nAATraceback (most recent call last):\r\n2015-04-14 06:39:28 ERROR    POSTPROCESSER :: Exception generated in thread POSTPROCESSER: ''\r\n2015-04-14 06:39:28 DEBUG    POSTPROCESSER :: Contacting KODI via url: http://ip:3005/****Cmds/****Http/?command=Help\r\n2015-04-14 06:39:28 DEBUG    POSTPROCESSER :: KODI encoded API command: command=Help\r\n2015-04-14 06:39:28 WARNING  POSTPROCESSER :: Error while trying to retrieve KODI API version for 192.168.22.166:3005: \r\n2015-04-14 06:39:28 DEBUG    POSTPROCESSER :: Contacting KODI via url: http://ip:3005/jsonrpc\r\n2015-04-14 06:39:28 DEBUG    POSTPROCESSER :: KODI JSON command: {\"jsonrpc\":\"2.0\",\"method\":\"JSONRPC.Version\",\"id\":1}\r\n2015-04-14 06:39:28 INFO     POSTPROCESSER :: Sending KODI notification to 'ip:3005' - Elementary - 2x17 - Ears to You - SD TV"}}