Wait Node Not Receiving Updated Data from Resume Webhook - Getting Original Parameters Instead

Describe the problem/error/question

Hello,

I need help with an n8n workflow issue I’m experiencing.

I have created n8n workflows with the following structure:

main: A main workflow that executes a sub-workflow and waits for the result to proceed with the next task.

caller: A sub-workflow called by main. It sends an HTTP request through an HTTP Request node, including the $execution.resumeUrl from a Wait node in the same workflow. The Wait node waits until a webhook is called, then returns the body content when the webhook triggers.

worker: Operates with a webhook trigger. When the webhook is called, it performs predefined tasks and upon completion, makes an HTTP request to the received resumeUrl with the execution results.

What I want to achieve:
I want the main workflow to properly receive the results performed by the worker when the main workflow is executed.

Problem:
When I actually run the main workflow, both worker and caller execute normally and return proper results. However, the main workflow only receives the original parameter information that was used when initially calling the caller, not the updated results.

The main workflow waits until both caller and worker complete their tasks, but it’s not properly receiving the results returned by the caller.

Has anyone experienced a similar issue with Wait nodes and resume webhooks? Any suggestions on how to ensure the main workflow receives the updated data from the caller after the worker completes its task?

Thank you for your help!

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.99.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 22.04

Hey @yijang hope all is well. Welcome to the community.

Is there a doc that suggests that the Execute Workflow node supports returning values? I want to read up on that.

Are you asking about the following content? Sub-workflows | n8n Docs

As I understand it, when executing a sub-workflow, data is passed when running that workflow, and once the sub-workflow execution is complete, the data returned by the last node of that sub-workflow is retrieved as the result data.

Thank you, yes, you are right.

I tried to run yours and repro myself - having that third workflow “worker” makes “caller” not to return values back to “main”. With only two workflows it does, but when a third one is added - “main” output is empty. Wanna file a bug?

Thank you for confirming this. I’m relieved to know that it’s not just me experiencing this issue and that it can be reproduced.

I noticed that bug reports are submitted through GitHub based on the link. Should I be the one to file the report? If I need to submit it, I’ll register this as a GitHub issue.

You can, if you would like, if not, let me know, I can do it for you.

1 Like

Thank you.
I did it. :slight_smile:

1 Like