{ "message": "", "name": "FunctionNodeError" }

I started to run into a Function Node Error in a Workflow. Losant Debug form shows the following message:

{
“message”: “”,
“name”: “FunctionNodeError”
}

I tried to debug it, but the error goes away only if Function Node has no code in it.

The simple code like the following is also generating an error:

var i = 1;
payload.debug_i = i;

This is how workflow looks like:

Could you I get an advice what could be the reason for that?

Hi @Alexander_Kondrov,

I will look into this and see what I can find, and get back to you shortly with a solution!

Thanks,
Julia

1 Like

@Alexander_Kondrov,

That’s a super funky error message, but we found what caused it. It has something to do with using error on the root of the payload along with the Function Node.

Our engineering team is looking into the root cause. But, for now, I would assume you have a payload path as error configured in the Validate Payload node. If you change that, all should work for now.

I’ll update once we have a fix found.

1 Like

@Alexander_Kondrov

I can confirm that this issue is now fixed :smiley:

Thank you so much for letting us know!

Hi Taron,

Thank you for the prompt replies as always. You were right, I used “error” name for an error path of Validate Payload node. I changed the name and din’t experience this issue anymore.