l2g wrote:This is probably what you're running (see here). It was fixed in v16.2.0; try seeing if this is the case for you.
Thank you for the quick response! Apparently I was still on 0.14. I think I'm almost done setting everything up! If I send a notification through command-line, I receive a correct notification in Telegram.
However, when I configure Notify.py as the scan/PP-script I receive the following errors. I've checked Python and I'm already on the latest version. Where can I start to figure out how to solve this? (It seems to be an error in Python self, so I guess it's not really your script anymore, but I was hoping you could still help me out
)
Code: Select all
Sun Feb 26 15:10:54 2017 INFO Executing post-process-script Notify.py for MPfKsQRxh8vpwUMJPqSL1
Sun Feb 26 15:10:56 2017 WARNING Notify: NZBParse - NZB-File is missing: MPfKsQRxh8vpwUMJPqSL1.nzb
Sun Feb 26 15:10:57 2017 WARNING Notify: RCP Connection Failure (1): [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
Sun Feb 26 15:10:58 2017 ERROR Notify: Traceback (most recent call last):
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/opt/nzbget/scripts/Notify/nzbget/ScriptBase.py", line 2723, in run
Sun Feb 26 15:10:58 2017 INFO Notify: exit_code = main_function(*args, **kwargs)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/opt/nzbget/scripts/Notify.py", line 1070, in postprocess_main
Sun Feb 26 15:10:58 2017 INFO Notify: logs = self.get_logs(25)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/opt/nzbget/scripts/Notify/nzbget/ScriptBase.py", line 2271, in get_logs
Sun Feb 26 15:10:58 2017 INFO Notify: logs = self.api.postqueue(10000)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
Sun Feb 26 15:10:58 2017 INFO Notify: return self.__send(self.__name, args)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/xmlrpclib.py", line 1591, in __request
Sun Feb 26 15:10:58 2017 INFO Notify: verbose=self.__verbose
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
Sun Feb 26 15:10:58 2017 INFO Notify: return self.single_request(host, handler, request_body, verbose)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/xmlrpclib.py", line 1301, in single_request
Sun Feb 26 15:10:58 2017 INFO Notify: self.send_content(h, request_body)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/xmlrpclib.py", line 1448, in send_content
Sun Feb 26 15:10:58 2017 INFO Notify: connection.endheaders(request_body)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
Sun Feb 26 15:10:58 2017 INFO Notify: self._send_output(message_body)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/httplib.py", line 850, in _send_output
Sun Feb 26 15:10:58 2017 INFO Notify: self.send(msg)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/httplib.py", line 812, in send
Sun Feb 26 15:10:58 2017 INFO Notify: self.connect()
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/httplib.py", line 1212, in connect
Sun Feb 26 15:10:58 2017 INFO Notify: server_hostname=server_hostname)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/ssl.py", line 350, in wrap_socket
Sun Feb 26 15:10:58 2017 INFO Notify: _context=self)
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/ssl.py", line 566, in __init__
Sun Feb 26 15:10:58 2017 INFO Notify: self.do_handshake()
Sun Feb 26 15:10:58 2017 ERROR Notify: File "/usr/lib/python2.7/ssl.py", line 788, in do_handshake
Sun Feb 26 15:10:58 2017 INFO Notify: self._sslobj.do_handshake()
Sun Feb 26 15:10:58 2017 ERROR Notify: SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
Sun Feb 26 15:10:58 2017 ERROR Post-process-script Notify.py for MPfKsQRxh8vpwUMJPqSL1 failed
Edit: It seems I only receive this error when a download fails. If a download is successful I do get a notification, but I still get this warning (Notify: RCP Connection Failure (1): [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)) When I set this script up on my desktop (W10, NZBget 18.0, Pyton 2.7) everything works directly, without any error whatsoever.
And one last thing, which is more of a luxury problem: if I try to manually send a notification to a group, I receive the following error. If I replace the ChatID with my personal ChatID everything works fine, but when I use a group ChatID, I receive this error. Could it be because the Group ChatID is a negative number?
Code: Select all
2017-02-26 14:51:51,166 - 11054 - WARNING - Failed to send Telegram:@-123456789 notification: (400) Bad Request: chat not found.
Thank you for taking the time to read all of this!