meross-homeassistant icon indicating copy to clipboard operation
meross-homeassistant copied to clipboard

An exception occurred /meross_iot/manager.pyline 818

Open warlordattack opened this issue 2 years ago • 1 comments

Describe the bug Error in the logs

Your environment Home Assistant 2022.7.7 Supervisor 2022.07.0 Operating System 8.4 Frontend 20220707.1 - latest Hardware environment: synology virtual machine manager

Logs taken when the issue happened

This error originated from a custom integration.

Logger: custom_components.meross_cloud
Source: custom_components/meross_cloud/__init__.py:243
Integration: Meross Cloud IoT
First occurred: 15:31:19 (1 occurrences)
Last logged: 15:31:19

Error occurred. ------------------------------------- Component version: 0.4.4.7 Device info: Name: plafond toilettes UUID: 2104099150451990848948e1e96b267b Type: msl120dr HW Version: 4.0.0 FW Version: 4.2.3 Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/meross_iot/manager.py", line 818, in _async_send_and_wait_ack
    return await asyncio.wait_for(future, timeout)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/__init__.py", line 243, in async_update
    await self._device.async_update()
  File "/usr/local/lib/python3.10/site-packages/meross_iot/controller/mixins/system.py", line 22, in async_update
    result = await self._execute_command(method="GET",
  File "/usr/local/lib/python3.10/site-packages/meross_iot/controller/device.py", line 278, in _execute_command
    return await self._manager.async_execute_cmd(destination_device_uuid=self.uuid,
  File "/usr/local/lib/python3.10/site-packages/meross_iot/manager.py", line 778, in async_execute_cmd
    return await self.async_execute_cmd_client(client=client,
  File "/usr/local/lib/python3.10/site-packages/meross_iot/manager.py", line 799, in async_execute_cmd_client
    response = await self._async_send_and_wait_ack(
  File "/usr/local/lib/python3.10/site-packages/meross_iot/manager.py", line 825, in _async_send_and_wait_ack
    raise CommandTimeoutError(message=str(message), target_device_uuid=target_device_uuid, timeout=timeout)
meross_iot.model.exception.CommandTimeoutError

warlordattack avatar Jul 27 '22 13:07 warlordattack

Hi, The timeout error can occur in the event of Meross Cloud error, Network issues or when too many messages are being sent to the Meross Broker.

What is the symptoms you are experiencing?

albertogeniola avatar Jul 27 '22 14:07 albertogeniola