I have latest n8n 1.90.2 running in Docker container. I have set the host and it works otherwise fine but when triggering error, it incorrectly defaults to http://localhost:5678. I fixed this for me with Code string replace but thought it is good to report this as a bug.
Environment variables
- N8N_HOST=my-full-domain-name
- WEBHOOK_URL=https://my-full-domain-name
- WEBHOOK_TUNNEL_URL=https://my-full-domain-name
Steps to reproduce:
- Add an error trigger on your specific host. Check if localhost is set as the variable for workflow url.
Environment
- Running n8n via Docker
- Operating system: Ubuntu 22.04.5 LTS
- n8n: self-hosted 1.90.2
- Docker version 28.1.1, build 4eba377
- Database: Postgres
Data from my error trigger
{
"execution":
{
"id":
231,
"url":
"http://localhost:5678/execution/workflow/1/231",