All code nodes stuck in loop after upgrade to v 1.99.1

I just updated to v 1.99.1, but now all code nodes in all workflows are stuck in endless loop. Everything worked fine yesterday, but fails after upgrade. I have read other posts regarding same issue, but have not found a good solution for it. Hosting n8n on Railway.

Hello there,
Could you please provide an example workflow where this issue has occurred?

Hi,
All code nodes are affected. They usually have JS, like the one below. Rolled back to version [email protected], and now all code nodes steps work again.

for (const item of $input.all()) {
  const currentDate = new Date(item.json.currentDate);
  const nextMonth = (currentDate.getMonth() + 2) % 12 || 12;
  
  // Array of month abbreviations
  const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
  
  // Add both number and name
  item.json.nextMonthNumber = nextMonth;
  item.json.nextMonthName = monthNames[nextMonth - 1];
}
return $input.all();

Hey, I have a some issue.

@n8n team, How to resolve it?

SOLVED: Issue fixed in 1.101.

i also have this. elf hosted

We are facing the same issue from last two days, all the workflows with code nodes are stuck. Code node runs into infinite loop. We are using n8n cloud and not the selfhosted. Can anyone guide to get it fixed if possible?

Hey @fawadik , if the issue is taking place on n8n Cloud workspace you can contact Support team at [email protected] providing the details of the code you use and the workflow it is used in. Perhaps simple instance upgrade could resolve it for you. Make sure to contact from the registered email address as I cannot see any n8n Cloud account for the email address you use in this forum.

1 Like

I’m experiencing the same thing now too. I’m running on **
Current version:** 1.108.1 …. all WF with code node stopped working 2 days ago for me. I thought it was b/c of adding in chat gpt5, but when back to WF not edited and they are all experiencing the same problem.

I ran with simple code and to just let it pass through and it’s all failed and Code node stays stuck. I emailed it with details. Just wanted to see if anyone else having same issue or found a fix on for current version. THank you!!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.