Skip to content

Confusing error message TypeError: Cannot create property 'message' on string 'APS TIMEOUT' #16756

@yehzhang

Description

@yehzhang

What happened?

Zigbee2MQTT reports similar APS TIMEOUT errors throughout a day (see debug log below). The error message is confusing as it suggests some error related to the library code itself. A bit of searching shows this error happens on this line.

What did you expect to happen?

The error message should describe the real issue along with context where the issue happens.

Ideally, no APS TIMEOUT errors.

How to reproduce it (minimal and precise)

N/A

Zigbee2MQTT version

1.30.1-dev commit: 7605e1e

Adapter firmware version

0x26690700

Adapter

RaspBee II + deCONZ

Debug log

Zigbee2MQTT:error 2023-02-20 08:21:00: Publish 'set' 'state' to 'heated-blankets' failed: 'TypeError: Cannot create property 'message' on string 'APS TIMEOUT''
Zigbee2MQTT:debug 2023-02-20 08:21:00: TypeError: Cannot create property 'message' on string 'APS TIMEOUT'
at Group.command (/app/node_modules/zigbee-herdsman/src/controller/model/group.ts:224:26)
at runNextTicks (node:internal/process/task_queues:60:5)
at listOnTimeout (node:internal/timers:538:9)
at processTimers (node:internal/timers:512:7)
at Object.convertSet (/app/node_modules/zigbee-herdsman-converters/converters/toZigbee.js:294:17)
at Publish.onMQTTMessage (/app/lib/extension/publish.ts:247:36)
Zigbee2MQTT:info 2023-02-20 08:21:00: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to 'heated-blankets' failed: 'TypeError: Cannot create property 'message' on string 'APS TIMEOUT''","meta":{"friendly_name":"heated-blankets"},"type":"zigbee_publish_error"}'
Zigbee2MQTT:debug 2023-02-20 08:21:00: Received Zigbee message from 'plug/heated-blanket', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID null
Zigbee2MQTT:info 2023-02-20 08:21:00: MQTT publish: topic 'zigbee2mqtt/plug/heated-blanket', payload '{"linkquality":255,"state":"OFF","update":{"installed_version":4352,"latest_version":4099,"state":"idle"},"update_available":false}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions