My n8n flows aren’t working every time they reach the code node. At first, I thought it was just one code node, but I checked the others and it’s happening in all of them that use code as a node. "Task request timed out after 60 seconds
", an error that never appeared before, and I don’t know how to solve it or why this is happening.
Olá, @Vinicius_Costa ! Bem-vindos à comunidade n8n.
Isso não é problema no seu código.
Existe um problema conhecido no n8n Cloud em que todos os Code nodes começam a falhar com Task request timed out after 60 seconds.
O que acontece é que o task runner do workspace fica travado/instável, então qualquer Code node dá timeout, mesmo com código simples.
Just to reinforce what @Deepankar shared — this is definitely a known issue with the n8n Cloud task runner getting into a stuck state. The 60-second timeout on Code nodes happens even with simple code when the runner is unhealthy.
**Quick fix priority:**
1. **Restart your workspace** (Cloud Dashboard → Admin Dashboard → Manage → Restart) — this fixes it 90% of the time
2. **Upgrade to latest** (you’re on 2.4.6, latest stable is 2.6.3) — several task runner fixes landed in recent versions
**To prevent this going forward:**
- If you’re running heavy data processing in Code nodes, consider splitting the workload using the “Split in Batches” approach or moving logic to a Function node (which has different execution constraints)
- For long-running operations, you might want to use the HTTP Request node to call an external service instead of processing within the Code node