zigbeefordomoticz / Domoticz-Zigbee

Zigbee plugin for Domoticz. Allow to connect various zigbee controllers like Zigate but also Texas Instrument CC2531, CC13x2, CC26x2 ; Silicon-Labs; deConz based chipset to be connected to Domoticz
GNU General Public License v3.0
99 stars 43 forks source link

Handle Exception in plugin #1579

Closed pipiche38 closed 1 year ago

pipiche38 commented 1 year ago
2023-04-17 12:43:39,079 ERROR   :Task exception was never retrieved
future: <Task finished name='Task-90' coro=<transport_request() done, defined at /var/lib/domoticz/plugins/Domoticz-Zigate/Classes/ZigpyTransport/zigpyThread.py:596> exception=TimeoutError()>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 919, in _send_request_raw
    response = await asyncio.shield(
  File "/usr/lib/python3.9/asyncio/futures.py", line 284, in __await__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
    future.result()
  File "/usr/lib/python3.9/asyncio/futures.py", line 196, in result
    raise exc
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/tasks.py", line 258, in __step
    result = coro.throw(exc)
  File "/var/lib/domoticz/plugins/Domoticz-Zigate/Classes/ZigpyTransport/zigpyThread.py", line 636, in transport_request
    result, msg = await self.app.request( destination, Profile, Cluster, sEp, dEp, sequence, payload, expect_reply=ack_is_disable, use_ieee=use_ieee, extended_timeout=extended_timeout )
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 764, in request
    await self.send_packet(
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 1033, in send_packet
    response = await self._send_request_raw(
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 937, in _send_request_raw
    raise InvalidCommandResponse(
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 129, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
2023-04-17 12:43:41,455 ERROR   :Task exception was never retrieved
future: <Task finished name='Task-292' coro=<transport_request() done, defined at /var/lib/domoticz/plugins/Domoticz-Zigate/Classes/ZigpyTransport/zigpyThread.py:596> exception=TimeoutError()>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 919, in _send_request_raw
    response = await asyncio.shield(
  File "/usr/lib/python3.9/asyncio/futures.py", line 284, in __await__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
    future.result()
  File "/usr/lib/python3.9/asyncio/futures.py", line 196, in result
    raise exc
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/tasks.py", line 258, in __step
    result = coro.throw(exc)
  File "/var/lib/domoticz/plugins/Domoticz-Zigate/Classes/ZigpyTransport/zigpyThread.py", line 636, in transport_request
    result, msg = await self.app.request( destination, Profile, Cluster, sEp, dEp, sequence, payload, expect_reply=ack_is_disable, use_ieee=use_ieee, extended_timeout=extended_timeout )
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 764, in request
    await self.send_packet(
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 1033, in send_packet
    response = await self._send_request_raw(
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 937, in _send_request_raw
    raise InvalidCommandResponse(
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 129, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError