resumeURL host incorrect

Describe the problem/error/question

I’m trying to setup a wait and continue on webhook call node but it seems to use the wrong host for the URL. {{ $execution.resumeUrl }} is http://localhost:5678/webhook-waiting/323. (please dont hack me)

Replacing localhost with the actual URL works but i’d like to find out where I can set this to the right host

I have these ones set:
WEBHOOK_URL
N8N_HOST (editor base url without http in it)
N8N_EDITOR_BASE_URL

Information on your n8n setup

  • n8n version: 1.89.2
  • Database (default: SQLite): Postgres
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
1 Like

Hi @Jannispkz ,

Here’s a similar question where this was resolved.

You need to set your set your webhook url in your .env file.

webhook_url=mysite.

Best,

Robert

  • This is not accessible to the internet
  • webhook_url=mysite will tell n8n how to host it
  • you MUST restart n8n after configuring webhook_url=mysite
  • you must ensure that mysite:5678 is accessible to the internet

For me I run this out of my house on my own pc and I use a free cloudflare zero trust tunnel which allows me to take localhost:5678 and port it to https://mysite.com with no funny n8n localhost port and I get a free SSL around it and with the environment variable set webhook_url works, because everything is secure and properly exposed. Simply setting webhook_url=mysite assumes many things you have done PRIOR to setting it up.

Forget the webhook for a moment… can you access the n8n UI using https://mysite.com/home/workflows ? If the answer is NO, then you need to go many steps back… just to expose the server. (above I described my preferred way) there are other ways too.

webhook url is set and works on webhook nodes.

everything else works, this node is causing the only issue. As I said, replacing localhost with the actual webhook URL does work, the expression just gets the wrong url. I sadly can’t set that using the discord “send message and wait for answer” node though which is what I wanted to use

This works for me. you need to send the URL someplace… here I choose email as an example. Also note that if you use the SUFFIX setting in the wait node as I have here you must also MANUALLY add it to the $execution.resumeUrl path

Also I am running the current version in GIT 1.88.0 but you say your running version 1.89.2 which means you pulled a tagged version docker pull n8nio/n8n:1.89.2 that’s not the official release. docker pull n8nio/n8n is the latest and is 1.88.0

1 Like

On test workflow, this opens the actual form. However in the email, I get the localhost url. Also this is an issue that goes back a few versions because I remember giving this a try a while ago already, has nothing to do with me being on the NEXT version

Everything works but responseURL somehow uses an incorrect host

something clearly has to be missing or misconfigured in your setup :person_shrugging:

I just recreated a docker setup using your docjker version and the values are showing as expected. I included screen shots to both n8n and the docker config