TypeError: execution.waitTill.getTime is not a function

Describe the problem/error/question

if a workflow has a Wait node, and the status is WAITING(> 65 seconds), n8n does not execute and has errors in the log

Database row of ID 596515
i’ve scheduled a new one:
596515 false “manual” “2023-12-22 12:10:38.888+00” “2023-12-22 12:10:38.896+00” “2023-12-22 08:59:38.896+00” “waiting” “TB3PVn7m7Tdf6IVU”

What is the error message (if any)?

waiting

Please share your workflow

Share the output returned by the last node

[
{
“diffInMinutes”: 1249,
“scheduledAtBrasilia”: “23/12/2023, 06:00:00”,
“scheduled_at”: “2023-12-23T09:00:00”,
“formattedDate”: “1703332800”
}
]

Information on your n8n setup

  • OS: Ubuntu 20.04
  • n8n Version: Tested on: 1.22.1, 1.22.0, 1.21.1, 1.21.0 ,1.18.4
  • Node.js Version: v20.5.1
  • Database system: Postgres
  • Operation mode: main
1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • n8n version: Tested on: 1.22.1, 1.22.0, 1.21.1, 1.21.0 ,1.18.4
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Ubuntu 20.04

Hi @ApproachTI, I am very sorry you’re having trouble.

I just tried reproducing this using the below workflow on the docker compose setup from this post.

The workflow completes without errors here once the wait time ends. The difference most obvious to me here would be that the n8n docker image uses Node.js v18 while you are using Node.js 20.

Are you also seeing this problem when using Node.js 18?