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?
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.
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.