Missing request data in Wait webhook with Worker

Hey guys!

When trying to retrigger the workflow using a Wait nodes webhook, the input data is missing (url params, body, headers). This is only the case when n8n is using the worker functionality. Using the main process everything is working as expected.

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "path": "0fef3f1e-d280-4915-ad94-f6eb99f84e56",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        500
      ],
      "webhookId": "0fef3f1e-d280-4915-ad94-f6eb99f84e56"
    },
    {
      "parameters": {
        "functionCode": "item.waitUrl = $resumeWebhookUrl;\n\nreturn item;"
      },
      "name": "FunctionItem",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        520,
        500
      ]
    },
    {
      "parameters": {
        "resume": "webhook",
        "options": {}
      },
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1,
      "position": [
        800,
        500
      ],
      "webhookId": "45ee0a74-12fa-4529-a334-43232a26e506"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "FunctionItem",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FunctionItem": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

The Wait node doesn’t change the items data in any way.

Is there any configuration missing or could this be some kind of bug?

Thanks for any suggestions.

n8n version: 0.152.0
Running n8n via Docker

Seeing you have set up workers, I assume you have configured n8n to run in queue mode? If so, @krynble is probably best placed to answer this question

Hum this might be a bug! I’ll test it and see if there is an issue when using Wait node with queues.

I’ll be back soon!

2 Likes

Sorry about the delay - I did some investigation and I can confirm there is a bug.

A ticket has been created to fix it and we can hopefully soon fix it.

2 Likes

Perfect! Thank you!

The bug got fixed and will be released with the next version.

Fix got released with [email protected]

1 Like