Error 253 - WTH

I’ve never seen this before, but when I run an action I sometimes receive a Node-Red log ‘Home Assistant: Error 253’.

Has anyone seen this before? I did check google and it seems to be a very general error relating to Node-Red trying to perform an action on a property that does not exist. The problem is that the property DOES exist. It’s an action to turn on some Christmas Lights. It works about 50% of the time and I have no idea why I receive this error. I tried to end-around the error by having the action retrigger, but it repeats the error.

[{"id":"16335cafb8df456b","type":"inject","z":"d1532f2de2e473dd","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1440,"y":580,"wires":[["8bff0fe74e3586c1"]]},{"id":"8bff0fe74e3586c1","type":"api-call-service","z":"d1532f2de2e473dd","name":"Party Lights on Tree","server":"6e751b1b.8f17c4","version":7,"debugenabled":false,"action":"select.select_option","entityId":["select.wled_preset_4"],"data":"{\"option\":\"Christmas Party\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":true,"domain":"select","service":"select_option","x":1900,"y":620,"wires":[[]]},{"id":"fac178b9fdc9a300","type":"trigger","z":"d1532f2de2e473dd","name":"Retry After Delay","op1":"","op2":"","op1type":"nul","op2type":"num","duration":"15","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1750,"y":700,"wires":[["8bff0fe74e3586c1"]]},{"id":"28afb1ff4f2845b7","type":"function","z":"d1532f2de2e473dd","name":"Retry Logic","func":"msg.retry_count = (msg.retry_count || 0) + 1;\nif (msg.retry_count > 20) {\n    node.warn(\"Retry limit reached.\");\n    return null;\n}\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":1590,"y":640,"wires":[["fac178b9fdc9a300"]]},{"id":"f810a4e122e66167","type":"catch","z":"d1532f2de2e473dd","name":"Catch Errors","scope":["8bff0fe74e3586c1"],"uncaught":false,"x":1410,"y":640,"wires":[["28afb1ff4f2845b7"]]},{"id":"6e751b1b.8f17c4","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

Sometimes it is also due to memory shortage, especially if there are loops and the message is not cleaned up somewhere in the loop.

Meaning… restart to the Node-Red App? It is a simple action, there should be no issue with memory.

If you have loops and you do not manage/clean the message being passed around, the. It will happen again.

Add a debug node somewhere in your loops and make sure it is set to show the entire message.

I am confused by what you mean by loops.

If I create an action to turn on a switch triggered by a manual injection I get this error.

It might not be the flow you work on that cause the error.
If you have a flow with a loop somewhere then that can eat the memory too.

OK. I will check, but it seems very peculiar. It only happens with this one flow on this one action.

I am at a loss. I have no ‘loops’ in Node-Red that I am aware of. My understanding of a loop would be a node that continuously runs eating up resources.

This particular flow (which has been created only as a test) generates a result ‘HomeAssistant: Error 253”. I tried debugging the action and I get nothing meaning no debug log generates. The error is not part of the debug (as shown below):

Your understanding of a loop is correct.

What are your hardware setup?

That error originates from Home Assistant when it attempts to execute the action defined in the action node. Check your Home Assistant logs for a more detailed explanation of the issue.

These lights are wled? It’s probably related to this set of errors. There is no resolution in the thread.