Form trigger node test url issues

Describe the problem/error/question

I am using the ‘On form submission’ node as a way to manually test workflows that process files. I’ve noticed recently that when I click ‘Execute workflow’ to test the flow, it opens a window with the URL n8n.io - Workflow Automation instead of the actual testing URL which is https://n8n-dev1.osher.com.au/form-test/auto-referral-scan and so the popup window just shows n8n’s 404 error

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.)
{
  "nodes": [
    {
      "parameters": {
        "formTitle": "Medical referral scanning",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Please upload the referral",
              "fieldType": "file",
              "fieldName": "data",
              "requiredField": true
            }
          ]
        },
        "options": {
          "appendAttribution": false,
          "path": "auto-referral-scan"
        }
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.5,
      "position": [
        0,
        0
      ],
      "id": "8f312d33-f579-4e33-bc83-507172fe4495",
      "name": "On form submission",
      "webhookId": "afba6d7f-a97a-4f8d-b8c9-15a35b342bde"
    }
  ],
  "connections": {},
  "pinData": {},
  "meta": {
    "instanceId": "ba93685c05a07d147d74c6b0ded51176cc6c761cfec504f675a4eb2a96d2cd40"
  }
}

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.6.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Windows 11

hi @WuWeiDigital,

Could you check your environment variables for WEBHOOK_URL?

There might be a duplicate value..

1 Like

Hello, see below

WEBHOOK_URL=${SERVICE_FQDN_N8N}

SERVICE_FQDN_N8N=n8n-dev1.osher.com.au

It looks like you’re using Coolify, just like I am,

The value that works for me is:

WEBHOOK_URL=${SERVICE_URL_N8N}

and the:

SERVICE_URL_N8N=https://n8n.example.com

Note that it must include https://

The other variables are set like this:

SERVICE_URL_N8N=https://n8n.example.com
SERVICE_FQDN_N8N=n8n.example.com
SERVICE_URL_N8N_5678=https://n8n.example.com:5678
SERVICE_FQDN_N8N_5678=n8n.example.com:5678
1 Like

Hello, yes, I am using Coolify.

I have updated the env’s to look like this

SERVICE_URL_N8N=https://n8n-dev1.osher.com.au
SERVICE_FQDN_N8N=n8n-dev1.osher.com.au
SERVICE_URL_N8N_5678=https://n8n-dev1.osher.com.au:5678
SERVICE_FQDN_N8N_5678=n8n-dev1.osher.com.au:5678
N8N_EDITOR_BASE_URL=${SERVICE_URL_N8N}
WEBHOOK_URL=${SERVICE_URL_N8N}
N8N_HOST=${SERVICE_URL_N8N}
TZ=Australia/Brisbane
GENERIC_TIMEZONE=Australia/Brisbane
N8N_BLOCK_ENV_ACCESS_IN_NODE=true
N8N_PROXY_HOPS=1

However, I still have the same issue, when I run the workflow from the trigger node it still tries to open this URL https://n8n-dev1.osher.com.au/workflow/eMobL5beU6MYYq-TgUTU8/n8n-dev1.osher.com.au/form-test/osher instead of the actual test URL which you can see in this screenshot

Okay, now go back to the compose file and keep only this:

 'WEBHOOK_URL=${SERVICE_URL_N8N}'
2 Likes

That fixed it, thanks very much for your help!

1 Like