UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 1: invalid continuation byte
2023-12-07 13:57:53.660 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _ProactorDatagramTransport._loop_reading(<_OverlappedF...135', 62926))>)
Traceback (most recent call last):
File ".homeassistant\custom_components\localtuya\discovery.py", line 65, in datagram_received
data = decrypt_udp(data)
^^^^^^^^^^^^^^^^^
File ".homeassistant\custom_components\localtuya\discovery.py", line 30, in decrypt_udp
return _unpad(decryptor.update(message) + decryptor.finalize()).decode()
^^^^^^^^^^^^^^^^^^^^
File "Python311\Lib\site-packages\cryptography\hazmat\primitives\ciphers\base.py", line 186, in finalize
data = self._ctx.finalize()
^^^^^^^^^^^^^^^^^^^^
File "Python311\Lib\site-packages\cryptography\hazmat\backends\openssl\ciphers.py", line 222, in finalize
raise ValueError(
ValueError: The length of the provided data is not a multiple of the block length.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Python311\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "Python311\Lib\asyncio\proactor_events.py", line 607, in _loop_reading
self._protocol.datagram_received(data, addr)
File ".homeassistant\custom_components\localtuya\discovery.py", line 67, in datagram_received
data = data.decode()
^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 1: invalid start byte
2023-12-07 13:57:58.663 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _ProactorDatagramTransport._loop_reading(<_OverlappedF...135', 62926))>)
Traceback (most recent call last):
File ".homeassistant\custom_components\localtuya\discovery.py", line 65, in datagram_received
data = decrypt_udp(data)
^^^^^^^^^^^^^^^^^
File ".homeassistant\custom_components\localtuya\discovery.py", line 30, in decrypt_udp
return _unpad(decryptor.update(message) + decryptor.finalize()).decode()
^^^^^^^^^^^^^^^^^^^^
File "Python311\Lib\site-packages\cryptography\hazmat\primitives\ciphers\base.py", line 186, in finalize
data = self._ctx.finalize()
^^^^^^^^^^^^^^^^^^^^
File "Python311\Lib\site-packages\cryptography\hazmat\backends\openssl\ciphers.py", line 222, in finalize
raise ValueError(
ValueError: The length of the provided data is not a multiple of the block length.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Python311\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "Python311\Lib\asyncio\proactor_events.py", line 607, in _loop_reading
self._protocol.datagram_received(data, addr)
File ".homeassistant\custom_components\localtuya\discovery.py", line 67, in datagram_received
data = data.decode()
^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 1: invalid continuation byte 2023-12-07 13:57:53.660 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _ProactorDatagramTransport._loop_reading(<_OverlappedF...135', 62926))>) Traceback (most recent call last): File ".homeassistant\custom_components\localtuya\discovery.py", line 65, in datagram_received data = decrypt_udp(data) ^^^^^^^^^^^^^^^^^ File ".homeassistant\custom_components\localtuya\discovery.py", line 30, in decrypt_udp return _unpad(decryptor.update(message) + decryptor.finalize()).decode() ^^^^^^^^^^^^^^^^^^^^ File "Python311\Lib\site-packages\cryptography\hazmat\primitives\ciphers\base.py", line 186, in finalize data = self._ctx.finalize() ^^^^^^^^^^^^^^^^^^^^ File "Python311\Lib\site-packages\cryptography\hazmat\backends\openssl\ciphers.py", line 222, in finalize raise ValueError( ValueError: The length of the provided data is not a multiple of the block length.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "Python311\Lib\asyncio\proactor_events.py", line 607, in _loop_reading self._protocol.datagram_received(data, addr) File ".homeassistant\custom_components\localtuya\discovery.py", line 67, in datagram_received data = data.decode() ^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 1: invalid start byte 2023-12-07 13:57:58.663 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _ProactorDatagramTransport._loop_reading(<_OverlappedF...135', 62926))>) Traceback (most recent call last): File ".homeassistant\custom_components\localtuya\discovery.py", line 65, in datagram_received data = decrypt_udp(data) ^^^^^^^^^^^^^^^^^ File ".homeassistant\custom_components\localtuya\discovery.py", line 30, in decrypt_udp return _unpad(decryptor.update(message) + decryptor.finalize()).decode() ^^^^^^^^^^^^^^^^^^^^ File "Python311\Lib\site-packages\cryptography\hazmat\primitives\ciphers\base.py", line 186, in finalize data = self._ctx.finalize() ^^^^^^^^^^^^^^^^^^^^ File "Python311\Lib\site-packages\cryptography\hazmat\backends\openssl\ciphers.py", line 222, in finalize raise ValueError( ValueError: The length of the provided data is not a multiple of the block length.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "Python311\Lib\asyncio\proactor_events.py", line 607, in _loop_reading self._protocol.datagram_received(data, addr) File ".homeassistant\custom_components\localtuya\discovery.py", line 67, in datagram_received data = data.decode() ^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte