Describe the problem/error/question
Yesterday, i upgraded from v0.219.1 to latest (v0.222.3)
Since then, one workflow (checked so far) is erroring out in the code node, in a simple JS operation.
Please share your workflow
Example of the code in question:
Share the output returned by the last node
I checked in MDN to see whether the hasOwnProperty
function has been deprecated. But that’s not the case either (Object.prototype.hasOwnProperty() - JavaScript | MDN ).
As seen in the screenshot:
Line 6 shouldn’t have executed at all
(Correct) Output as seen in v0.219.1 :
It’s rather troubling that basic JS is breaking down.
Information on your n8n setup
n8n version: latest (0.222.3)
Database (default: SQLite): Postgres
n8n EXECUTIONS_PROCESS setting (default: own, main): main
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
Operating system: Ubuntu
What’s the error?
Did you mean to check for the update property twice?
Found already reported, related bug:
I am having an odd issue after updating to 0.222.1 last night. I get a JSON payload from the webhook that sometimes will have a key called “remove” with the value set to “yes”. The value is always yes if the remove key is in the JSON.
I then set a variable in my code node that checks to see if that property exists in the Webhook payload, like this:
let remove = $node["Webhook"].json["body"]["0"].hasOwnProperty("remove");
I then use a switch to set a variable named “state”, like this:
cas…
1 Like
Jon
April 19, 2023, 1:31pm
5
This is N8N-6333
internally buddy.
Hi all.
Jon:
This is N8N-6333
Has there been any update on this, in any of the subsequent versions?
Thanks
I checked again with the release v0.226.0.
Same: faulty output.
netroy
April 28, 2023, 7:56am
8
@shrey-42 Thanks for reporting the issue, and also for including the test workflow; it was very helpful for debugging.
This is being addressed in PR 6124 , and will hopefully be included in the next release.
2 Likes
jan
May 2, 2023, 10:17am
9
New version [email protected]
got released which includes the GitHub PR 6124 .
system
Closed
July 31, 2023, 10:18am
10
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.