Code Nodes Hanging Indefinitely on n8n Cloud

Hello n8n Community,

I’m encountering an issue on n8n Cloud where workflows containing Code nodes never complete—each Code node enters an infinite “executing” state and blocks the rest of the workflow. No errors are thrown; the nodes simply hang.

Steps to Reproduce

  1. Create or import any workflow containing one or more Code nodes.
  2. Trigger the workflow manually or via webhook.
  3. Observe that each Code node starts running but never finishes, preventing downstream nodes from executing.

Expected Behavior
Each Code node should execute its JavaScript, return its output, and allow the workflow to proceed normally.

Environment

  • Platform: n8n Cloud (hosted, managed service)
  • Other environment details (OS, n8n version, Node.js version, database, execution mode) are managed by the platform and not directly accessible.

I’ve already replaced one of the three Code nodes with alternative components (which worked), but the remaining two are essential and still hang. Any insights or suggestions for resolving this on n8n Cloud would be greatly appreciated. I can share example workflows or logs if needed.

Thank you!

Just did as you described… create workflow, add manual trigger, add code node, execute. The code node “spinning” animation went for about a second and then ended.

Sometimes this is related to the state of the editor application running in the browser. If you haven’t reloaded the app or restarted your browser recently, please try that first.

If you’re still having troubles, please add which version of n8n you currently have running in your cloud account, which browser, and browser version you are using, what OS, your general location (country, etc), and anything else you can think of that might be unique to the context where you are using the n8n editor.