Code Nodes Stopped Working

None of my code nodes are working.

Across multiple workflows.

Information on your n8n setup

  • **n8n version:Running version [email protected] - Paid online version
  • **Database (default: SQLite):only version
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):?
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):cloud
  • **Operating system:?

Welcome to the community @nikwho !

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!


Have you recently upgraded your n8n instance? If so, from what version and what your workspace ID?

Hi @ihortom This workflow was created after upgrading to 1.72.1.

Everything was working and then ALL code nodes in all workflows (new and old) stopped working.

To Fix…
Clone the node
Replaced the node
Cloned the workflow

Nothing worked.

I restarted the workspace which got it working.

In my case, all code nodes old and new in all other workflows stopped working.

Thanks, what is your workspace ID?

@ihortom Excuse my ignorance. New user. Workspace ID is the account url?

Like abc123.app.n8n.cloud

Yes, it is the subdomain on your n8n Cloud workspace URL.

1 Like

@ihortom lhmagic

Hey @nikwho , it sounds like workflows are running fine now. Still, could you share the codes that you have in the Code nodes that were failing, please?

@ihortom

None of the Code nodes were working even old code nodes in automations that have not been touched for some time.

const jsonData = JSON.parse(items[0].json.data);

// Extract the link to the .vtt file
const vttLink = jsonData.link;

// Return the link as output
return [
  {
    json: {
      vttLink: vttLink,
    }
  }
];