Error since update to Z-stack firmware 20240710: Received an exception while passing frame to API
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- backend, networking
Línea de trabajo
The report identifies a malformed ZDO Routes response after the Z-stack firmware update and includes the failing frame and traceback. Start by tracing how ZDO response frames are decoded in zigpy_znp/types/commands.py and how the Routes parameter is defined; then check the relevant decoding tests. Done means the frame is handled correctly or reported without flooding the log, with coverage for the truncated response.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
My coordinator is a CC2652P, since update to Koenkk Z-stack firmware 20240710, my log is flooded with these errors, but apart from that, everything seems to work fine, just wanted to report this.
2025-06-08 20:39:29.490 ERROR (MainThread) [zigpy_znp.uart] Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x83\xDE\x84'))
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/types/commands.py", line 417, in from_frame
params[param.name], data = param.type.deserialize(data)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy/types/struct.py", line 319, in deserialize
value, data = field_type.deserialize(data)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/srv/homeassistant/lib/python3.13/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 "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/uart.py", line 56, in data_received
self._api.frame_received(frame.payload)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/api.py", line 860, in frame_received
command = command_cls.from_frame(frame, align=self.nvram.align_structs)
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame
raise ValueError(
...<2 lines>...
)
ValueError: Frame data is truncated (parsed {'Src': 0xDE83, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False)
2025-06-08 20:43:30.506 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/api.py", line 1120, in request_callback_rsp
return await callback_rsp
^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/api.py", line 1117, in request_callback_rsp
async with asyncio_timeout(timeout):
~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
raise TimeoutError from exc_val
TimeoutError
2025-06-08 20:43:30.507 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/api.py", line 1120, in request_callback_rsp
return await callback_rsp
^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zigpy_znp/api.py", line 1117, in request_callback_rsp
async with asyncio_timeout(timeout):
~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
raise TimeoutError from exc_val
TimeoutError
- Lenguaje dominante
- Python
- Estrellas
- 172
- Forks
- 49
- Merge medio
- 3 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de zigpy/zigpy-znp
-
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
-
AF.DataConfirm is matched by ZCL TSN only, so concurrent same-TSN requests to different devices get each other's delivery statusPosiblemente ocupada @puddly la tomó hace 20 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
`send_packet` no longer rediscovers routes on `APS_NO_ACK`; a stale next hop black-holes devices until restart (since #260)Posiblemente ocupada @zigpy-review-bot la tomó hace 25 días. Abiertoregression
Dificultad 2/5 1-3 horas Aptitud para principiantes 38/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Todos los issues de zigpy/zigpy-znp
Issues similares
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
docling-project/docling-core#1067 ·
Los mantenedores suelen responder en 3 días
-
correction metadata
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
acl-org/acl-anthology#11101 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[BUG] crewai tool create/install/login exit 0 when they failPosiblemente ocupada @Kiko0301 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vllm-project/compressed-tensors#1033 ·
Los mantenedores suelen responder en 3 días
-
chore kaizen ui-rewrite
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
IBM/mcp-context-forge#7681 ·
Los mantenedores suelen responder en 2 días