RangeError: Maximum call stack size exceeded in function node | n8n v0.199.0

Describe the issue/error/question

RangeError: Maximum call stack size exceeded

I have basic function node with return statement for the next node. But it’s

What is the error message (if any)?

RangeError: Maximum call stack size exceeded

Share the output returned by the last node

RangeError: Maximum call stack size exceeded
    at SecureContext.hasOwnProperty (<anonymous>)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:24:13)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)
    at deepCopy (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:25:45)

Information on your n8n setup

  • n8n version: 0.199.0
  • Database you’re using (default: SQLite): Postgres
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: docker - cloud run in GCP

Seems a issue with version post 0.198.1 rolling back solved the RangeError: Maximum call stack size exceeded It seems code around function node is recursing infinitely

Hey @Deshdeep,

Thanks for reporting this one, It looks like the team have spotted it and have a fix in place already. I know we are planning a release later today and I suspect this may be part of it.

1 Like

Fix got released with [email protected]

2 Likes