Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received an exception while passing frame to API: #258

Open
vjbalex opened this issue Aug 20, 2024 · 0 comments
Open

Received an exception while passing frame to API: #258

vjbalex opened this issue Aug 20, 2024 · 0 comments

Comments

@vjbalex
Copy link

vjbalex commented Aug 20, 2024

OS Version: Home Assistant OS 13.0
Home Assistant Core: 2024.8.2
Home Assistant Supervisior: 2024.08.0
Zigpy Version: 0.65.4
installed on Raspberry pi5

Error in System -> Logs:

Logger: zigpy_znp.uart
Source: /usr/local/lib/python3.12/site-packages/zigpy_znp/uart.py:75
First occurred: 4:19:41 AM (13 occurrences)
Last logged: 4:21:30 AM

Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\xFA\x1B\x84'))
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\xD1\xD7\x84'))
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x3A\xD5\x84'))
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\xD8\xD2\x84'))
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x68\x2C\x84'))
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/types/commands.py", line 417, in from_frame
params[param.name], data = param.type.deserialize(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy/types/struct.py", line 319, in deserialize
value, data = field_type.deserialize(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy/types/basic.py", line 199, in deserialize
raise ValueError(f"Data is too short to contain {byte_size} bytes")
ValueError: Data is too short to contain 1 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/uart.py", line 73, in data_received
self._api.frame_received(frame.payload)
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/api.py", line 846, in frame_received
command = command_cls.from_frame(frame, align=self.nvram.align_structs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame
raise ValueError(
ValueError: Frame data is truncated (parsed {'Src': 0xFC17, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False)

@puddly puddly transferred this issue from zigpy/zigpy Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant