Triggering an active webhook from another Workflow

Describe the problem/error/question

I am not able to trigger a Webhook from another workflow using HTTP Request Node.

What is the error message (if any)?

“message”: “connect ECONNREFUSED 127.0.1.1:443”,
"Error: connect ECONNREFUSED 127.0.1.1:443

Please share your workflow

Cannot share the workflow as it is deployed on production.

Share the output returned by the last node

“message”: “connect ECONNREFUSED 127.0.1.1:443”,
"Error: connect ECONNREFUSED 127.0.1.1:443

Information on your n8n setup

n8n version: 1.93.0 (EE)

Database (default: SQLite): Postgres

n8n EXECUTIONS_PROCESS setting (default: own, main): Not sure

Running n8n via (Docker, npm, n8n cloud, desktop app): docker

Operating system: Linux (on which n8n is setup)

Add an HTTP Request node to your workflow and fill it out as follows:

  • Method: POST

  • URL: Copy your production URL from the Webhook node and paste it here.

  • Send Headers:

    • Key: Content-Type

    • Value: application/json

If you want to send data to the Webhook, use the Body section.
If you just want to trigger the Webhook without sending any data, you can leave it empty.

Now, add a Webhook Trigger node.

  • HTTP Method: POST

  • Path: For example, write something like /trigger.

After you enter the path, your production URL will change. Once it updates, copy the new URL and paste it into your HTTP Request node.

Authentication: Your choice.
Respond: Immediately.

Now the setup is complete — but for it to work, your workflow must be active (click the green toggle in the top-right corner).
After activating your workflow, don’t trigger it manually for testing. Let the system trigger it automatically, and then monitor the executions in the Execution menu.

Yes, this is the exact configuration I’m using

and the error looks like this

When you use “When clicking test workflow trigger,” it won’t work this way.
Your workflow needs to be triggered automatically.
When you use “When clicking test workflow trigger,” you’re triggering it manually, so the Webhook doesn’t listen.
Use the production URL, activate your workflow, and let the system trigger it automatically instead of manually.

You mean the workflow which I’m testing to trigger the webhook needs to be triggered automatically instead of the “Manual Trigger”?

exactly, yes.

Update:

The issue was how the nginx proxy was configured. The public URL for webhooks is configured to only listen to the requests which come from outside where the n8n is hosted. But when you call it internally, it is routing to 127.0.1.1, which is probably the default URL n8n routes to, when we do internal webhook calling.

FIX: The fix was to use the internal URL where the n8n is hosted, instead of the public URL. It is always hosted on port 5678. Now the webhook is being triggered correctly.

Of course! I’m glad you were able to solve your issue.

Thanks for taking your time and replying!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.