state node seems to crash node red server #18
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
On my NR deployment as below:
I set up a simple flow:
[{"id":"aa81c317a725a8f3","type":"set-shared-state","z":"8e8f5a68f5eb9b9d","g":"b01913e064169ca1","state":"7ea309fdc0ceb6d8","name":"yaro_swiatlo_lewy","triggerOnInit":true,"triggerOnChange":true,"provideOutput":false,"outputs":0,"x":470,"y":4500,"wires":[]},{"id":"3b86614cbf559f9d","type":"mqtt in","z":"8e8f5a68f5eb9b9d","g":"b01913e064169ca1","name":"przełacznik ","topic":"zigbee2mqtt/wlacznik-2klik-C-warsztat","qos":"2","datatype":"auto-detect","broker":"224853ed.7c89fc","nl":false,"rap":true,"rh":0,"inputs":0,"x":100,"y":4500,"wires":[["c66f5b9c7ee8bcbe"]]},{"id":"67c2c43140b7ee2a","type":"debug","z":"8e8f5a68f5eb9b9d","g":"b01913e064169ca1","name":"debug 49","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":460,"y":4560,"wires":[]},{"id":"c66f5b9c7ee8bcbe","type":"function","z":"8e8f5a68f5eb9b9d","g":"b01913e064169ca1","name":" ","func":"\nreturn msg.payload;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":270,"y":4500,"wires":[["aa81c317a725a8f3","67c2c43140b7ee2a"]]},{"id":"7ea309fdc0ceb6d8","type":"shared-state","name":"yaro_swiatlo_lewy","lbl":"","tags":"yaro,włacznik,lewy","historyCount":"2","dataType":"obj","boolType":"bool","boolStrTrue":"","boolStrFalse":"","precision":"","numMin":"","numMax":"","unit":"","saveInterval":"0"},{"id":"224853ed.7c89fc","type":"mqtt-broker","name":"HA MQTT","broker":"localhost","port":"1883","clientid":"node-red","autoConnect":true,"usetls":false,"compatmode":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
When "mqtt in" node sends a message similar to this:
{"topic":"zigbee2mqtt/wlacznik-2klik-C-warsztat","payload":{"action":null,"device_temperature":23,"flip_indicator_light":"ON","flip_indicator_light_left":"ON","linkquality":232,"mode_switch":null,"operation_mode_left":null,"operation_mode_right":null,"power_outage_count":4,"power_outage_memory":null,"state_left":"OFF","state_right":"OFF","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null},"qos":0,"retain":false,"_topic":"zigbee2mqtt/wlacznik-2klik-C-warsztat","_msgid":"4b9575a56a9036e3"}
It always crashed my NR server with below exception.
It also crash it during restart attempt but approximately only about 5 times out of 6 attempts.
The text was updated successfully, but these errors were encountered: