'get template' node not working after upgrade

I have a node that began to give me an error when I upgraded Node-Red to the community version. It was a simple ‘get template’ node that measured the light sensor.

It’s a small bit of code


Using a debug node, the output when triggered is

msg : string[126]
"Error calling service, home assistant api error: Cannot set property headersSent of #<OutgoingMessage> which has only a getter"

I’ve tried searching a bit to figure out how to correct it, but I haven’t found anything.

How can I pinpoint the error and resolve the configuration to get this node working again?


I’m seeing this exact same error randomly. Anyone have any updates on this?