zim514 / script.service.hue

Kodi add-on for Philips Hue
MIT License
36 stars 15 forks source link

ConnectTimeoutError #293

Closed zim514 closed 1 month ago

zim514 commented 3 months ago

View details in Rollbar: https://app.rollbar.com/a/krisyoung/fix/item/script.service.hue/678

Traceback (most recent call last):
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.service.hue/resources/lib/lightgroup.py", line 131, in run_action
    self.group0.action(scene=scene)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.qhue/lib/qhue.py", line 54, in __call__
    r = self.session.put(url, data=json.dumps(kwargs, default=list), timeout=self.timeout)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 649, in put
    return self.request("PUT", url, data=data, **kwargs)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 507, in send
    raise ConnectTimeout(e, request=request)
ConnectTimeout: HTTPConnectionPool(host='192.168.1.111', port=80): Max retries exceeded with url: /api/VS0O2R94jn7oSBpsXpE1tHYh5vuBgEGENYmONNKh/groups/0/action (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x27712b3e70>, 'Connection to 192.168.1.111 timed out. (connect timeout=1)'))Traceback (most recent call last):
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 844, in urlopen
    retries = retries.increment(
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/util/retry.py", line 515, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
MaxRetryError: HTTPConnectionPool(host='192.168.1.111', port=80): Max retries exceeded with url: /api/VS0O2R94jn7oSBpsXpE1tHYh5vuBgEGENYmONNKh/groups/0/action (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x27712b3e70>, 'Connection to 192.168.1.111 timed out. (connect timeout=1)'))Traceback (most recent call last):
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 496, in _make_request
    conn.request(
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 395, in request
    self.endheaders()
  File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.11/lib/python3.11/http/client.py", line 1289, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.11/lib/python3.11/http/client.py", line 1048, in _send_output
    self.send(msg)
  File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.11/lib/python3.11/http/client.py", line 986, in send
    self.connect()
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 243, in connect
    self.sock = self._new_conn()
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 212, in _new_conn
    raise ConnectTimeoutError(
ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x27712b3e70>, 'Connection to 192.168.1.111 timed out. (connect timeout=1)')Traceback (most recent call last):
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 203, in _new_conn
    sock = connection.create_connection(
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/util/connection.py", line 85, in create_connection
    raise err
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
TimeoutError: timed out