Code node executes forever on my N8N cloud hosted Starter instance

Describe the problem/error/question

Starting a few days ago, I started facing a really strange issue. All Code nodes are processing forever irrespective how simple or complex the Javascript logic in them is.

For example, if I add a Code node with the default code to a new workflow and I simply execute it as a single step it runs forever, unless I terminate it.

Today my N8N as also rebooted one time due to an issue I was facing and I was hoping that the restart would fix the code block issue. But it didn’t.

At the moment all my workflows that have a Code block never finish execution. I would really appreciate some help on this.

What is the error message (if any)?

No error message, just the Code node just processes forever.

Please share your workflow

Share the output returned by the last node

I am expecting that the Code node executes the code in it in a few seconds or less and returns the output.

Information on your n8n setup

  • n8n version:: 1.72.1
  • Database (default: SQLite):: Not sure, default db that comes with the cloud hosted N8N
  • n8n EXECUTIONS_PROCESS setting (default: own, main):: Default of the N8N cloud hosted Starter plan
  • Running n8n via (Docker, npm, n8n cloud, desktop app):: N8N cloud
  • Operating system:: I am working in N8N on a Chrome browser window on a Macbook M4 Pro laptop.

Welcome to the community @aistudio.

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


There is nothing in your code that could have stalled its execution. Is that the actual workflow or it is more complex than that?

In case anyone is facing this issue. Someone from support replied and disabled a new feature introduced in the Code node because I was running an older N8N version. Then the issue got fixed. Thank you

Hi!
Can you share how to disable this feature? I’m facing the same problem, I updated n8n to the last version but it didn’t fix the issue!
Code node does not finish executing in any case

I wrote an email to support at [email protected]