Code node stoped to work (only in production) - Task execution timed out after 300 seconds

So, my code nodes of workflow stoped to work sudenly.

It was working pretty well, but suddenly the most part od the code nodes stoped, and start to return timeout error.

In execution mode everithing goes well, but in production mode it stops.

Message error:

Task execution timed out after 300 seconds

The task runner was taking too long on this task, so it was suspected of being unresponsive and restarted, and the task was aborted. You can try the following:

  1. Optimize your script to prevent long-running tasks, e.g. by processing data in smaller batches.
  2. Ensure that all paths in your script are able to terminate, i.e. no infinite loops.
  3. If your task can reasonably take more than 300 seconds, increase the timeout using the N8N_RUNNERS_TASK_TIMEOUT environment variable.

Information on your n8n setup

  • **n8n version:**Version 1.91.2
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Railway

Hi @Wellerson_Assumpcao

Based on the linting message:

.item is only available in the ‘Run Once for Each Item’ mode. Use .first() instead.

Have you tried updating that line to:

telefone: $('Extrair Telefone e Mensagem').first().json.phone,