# Code node hanging in n8n cloud

**URL:** <https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315>\
**Category:** Questions\
**Created:** [September 27, 2025, 8:29am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315 "2025-09-27T08:29:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 27, 2025, 8:29am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/1 "2025-09-27T08:29:57Z")

</div>

## Describe the problem/error/question

I am using the n8n Cloud plan and have encountered the following issue across multiple workflows:

- All nodes in the workflow execute smoothly, with the entire workflow completing in under one second.

- However, when I add a **Code Node (JavaScript)**, the Code Node stays spinning indefinetily. This occurs regardless of the complexity of the code or the amount of data being processed. Even minimal code (a few lines) and a small number of items trigger the same behavior. It never shows any error since it keeps spinning.

There are a few topics in the community addressing the same issue which were solved disabling the TaskRunners. I can’t do it. Would you please help me?

* * *

- \*\*n8n version: 1.108.2

- \*\*Database (default: SQLite): default

- \*\*Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud

- \*\*Operating system: macOS Big Sur 11.4

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/f/5f480ce784765d638ab4a605bd876e984e165589.png)

---

<div class="post-metadata">

**Author:** ![Carolyn](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/carolyn/32/112142_2.png) [@Carolyn](https://community.n8n.io/u/Carolyn)\
**Post date:** [September 27, 2025, 8:56am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/2 "2025-09-27T08:56:04Z")

</div>

Welcome to the community @Helbert_Leonel_Nunez

Your Code Node is stuck because n8n Cloud has a technical issue with how it runs JavaScript code.

Try this quick fix, remove any lines in your code that use `require()` to load external modules. Use only plain JavaScript. If that doesn’t work, you’ll need to contact n8n support directly, as this is a known problem they need to fix on their end.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![moosa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/moosa/32/108437_2.png) [@moosa](https://community.n8n.io/u/moosa)\
**Post date:** [September 27, 2025, 10:45am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/3 "2025-09-27T10:45:35Z")

</div>

hey @Helbert_Leonel_Nunez welcome to n8n community.

> [@Helbert\_Leonel\_Nunez](#):
>
> when I add a **Code Node (JavaScript)**,

when you execute workflow and code node keeps running.  
could you confirm that workflow is appearing in executions?

---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 27, 2025, 1:06pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/4 "2025-09-27T13:06:09Z")

</div>

Hi @moosa . Yes, it appears “running” indefinetily, though.

---

<div class="post-metadata">

**Author:** ![moosa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/moosa/32/108437_2.png) [@moosa](https://community.n8n.io/u/moosa)\
**Post date:** [September 27, 2025, 2:59pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/5 "2025-09-27T14:59:31Z")

</div>

can you share your workflow?

---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 27, 2025, 4:01pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/6 "2025-09-27T16:01:42Z")

</div>

[https://tinholeonp.app.n8n.cloud/workflow/RRKHMwJ0IWNZzVGG](https://tinholeonp.app.n8n.cloud/workflow/RRKHMwJ0IWNZzVGG)

The link is the only way I’ve found able to share

---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 27, 2025, 6:31pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/7 "2025-09-27T18:31:56Z")

</div>

Does anyone have any suggestion or help? Support doesn’t help me neither

---

<div class="post-metadata">

**Author:** ![moosa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/moosa/32/108437_2.png) [@moosa](https://community.n8n.io/u/moosa)\
**Post date:** [September 27, 2025, 8:24pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/8 "2025-09-27T20:24:25Z")

</div>

here is how you can [share workflow](https://europe1.discourse-cdn.com/n8n/original/3X/3/c/3c5d4799d109b446df8875d731db2800e7c55bc6.gif).

---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 28, 2025, 11:16am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/9 "2025-09-28T11:16:13Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/2/9296df2fdd3fa6fb87ed45995ed30b21ae018421.png)

I’d already tried to share it that way to no avail. Maybe it allows to share the part of the code node

---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 28, 2025, 11:16am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/10 "2025-09-28T11:16:36Z")

</div>



---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 28, 2025, 11:20am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/11 "2025-09-28T11:20:01Z")

</div>

I’ve tried to bypass these code nodes with Edit fields nodes, but the output is not the same as the expected with the code node

---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 28, 2025, 11:20am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/12 "2025-09-28T11:20:17Z")

</div>



---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 28, 2025, 11:23am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/13 "2025-09-28T11:23:45Z")

</div>

I do really need the Code node to work efficiently. As I’ve seen in other questions, the problem may be the TaskRunners; since I can’t disable them from my n8n cloud, I need someone from support to help me with that.

---

<div class="post-metadata">

**Author:** ![slim-python](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/slim-python/32/72851_2.png) [@slim-python](https://community.n8n.io/u/slim-python)\
**Post date:** [September 28, 2025, 11:31am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/14 "2025-09-28T11:31:02Z")

</div>

what are your exit conditions and your body response looks like, i can take a look if you want

---

<div class="post-metadata">

**Author:** ![moosa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/moosa/32/108437_2.png) [@moosa](https://community.n8n.io/u/moosa)\
**Post date:** [September 28, 2025, 1:25pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/15 "2025-09-28T13:25:01Z")

</div>

I just executed your given code node and it executed in no time!

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/f/2fa3c7d86bd4e9b494d7a03b870d6bf7f8853385.png)  
may be you could share http node with data pinned(if it is not a problem for you) I could help better.

---

<div class="post-metadata">

**Author:** ![Helbert\_Leonel\_Nunez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/helbert_leonel_nunez/32/123971_2.png) [@Helbert\_Leonel\_Nunez](https://community.n8n.io/u/Helbert_Leonel_Nunez)\
**Post date:** [September 29, 2025, 12:10pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/17 "2025-09-29T12:10:45Z")

</div>



---

<div class="post-metadata">

**Author:** ![moosa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/moosa/32/108437_2.png) [@moosa](https://community.n8n.io/u/moosa)\
**Post date:** [September 29, 2025, 12:15pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/18 "2025-09-29T12:15:29Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/6/86174ccefcfaac1a4ac49375f475682044af3018.png)

just ran it and got no issue!

may be try updating n8n to newest version.

---

<div class="post-metadata">

**Author:** ![mohamed3nan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mohamed3nan/32/188347_2.png) [@mohamed3nan](https://community.n8n.io/u/mohamed3nan)\
**Post date:** [September 29, 2025, 12:28pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/19 "2025-09-29T12:28:01Z")

</div>

Sorry for the interruption,  
As my friend Moosa mentioned, the code itself works without issues, not sure if it’s related to the cloud version..

That said, I’d like to suggest another possible solution, completely removing the code node,

Perhaps you could try this approach:

---

<div class="post-metadata">

**Author:** ![johnvon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/johnvon/32/66387_2.png) [@johnvon](https://community.n8n.io/u/johnvon)\
**Post date:** [October 3, 2025, 12:15am UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/20 "2025-10-03T00:15:59Z")

</div>

Have you made any progress on this? The same thing started happening to me today and now none of my workflows are working, they hang when they get to the Code node. I saw that thread about the Taskrunners so I just emailed support too, I wonder if there’s anything else to try. I updated to the latest version of n8n cloud and restarted but it didn’t seem to help.

---

<div class="post-metadata">

**Author:** ![justin\_peake](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/justin_peake/32/58807_2.png) [@justin\_peake](https://community.n8n.io/u/justin_peake)\
**Post date:** [October 9, 2025, 7:07pm UTC](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315/21 "2025-10-09T19:07:42Z")

</div>

Same issue here - started two days ago .

[Next page](https://community.n8n.io/t/code-node-hanging-in-n8n-cloud/195315.md?page=2)
