Great work Pako
I had no output either - perhaps they may be seeing similar issues as I saw:
running version = "0.2.18"
def connectivity(self):
c = pycurl.Curl()
c.setopt(pycurl.URL, '
http://www.google.com')
c.setopt(pycurl.CONNECTTIMEOUT, 5)
c.setopt(pycurl.TIMEOUT, 5)
if self.proxy[0]:
c.setopt(pycurl.PROXY, str(self.proxy[0]))
c.setopt(pycurl.PROXYPORT, self.proxy[1])
if self.proxy[2]:
c.setopt(
pycurl.PROXYUSERPWD,
"%s:%s" % (str(self.proxy[2]), str(self.proxy[3].Get()))
)
try:
---- Exception here caught and never connected / no messges ----
c.perform()
status_code = c.getinfo(c.RESPONSE_CODE)
c.close()
except:
status_code = None
return status_code in (200, 302)
this is the result when I do perform() outside the try block:
00:43:25 Exception in thread Thread-4:
00:43:25 Traceback (most recent call last):
00:43:25 File "threading.pyc", line 532, in __bootstrap_inner
00:43:25 File "threading.pyc", line 484, in run
00:43:25 File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 3769, in updateDevices
00:43:25 if not self.connectivity():
00:43:25 File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 2764, in connectivity
00:43:25 c.perform()
00:43:25 error: (23, 'Failed writing body (415 != 1460)')
00:43:25
So, I just returned True to bypass. Then the next error:
def start(self):
auth = None
auth = ''
if self.plugin.proxy[0] != "":
host = str(self.plugin.proxy[0])
port = self.plugin.proxy[1]
if self.plugin.proxy[2] != "":
auth = (
str(self.plugin.proxy[2]),
str(self.plugin.proxy[3].Get())
)
else:
host = None
port = None
---Exception here-----------
self.run_forever(
http_proxy_host = host,
http_proxy_port = port,
http_proxy_auth = auth
)
00:46:00 Exception in thread Thread-5:
00:46:00 Traceback (most recent call last):
00:46:00 File "threading.pyc", line 532, in __bootstrap_inner
00:46:00 File "threading.pyc", line 484, in run
00:46:00 File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1604, in start
00:46:00 http_proxy_auth = auth
00:46:00 TypeError: run_forever() got an unexpected keyword argument 'http_proxy_auth'
00:46:00
replaced with:
self.run_forever()
runs and gets messages now. have not tried much else