N8n on VPS Problem with form-test on n8n form trigger

Describe the problem/error/question

I installed n8n on my vps server with nginx.

On production it works fine, but on form-test the url is not valid.

Any ideas? I spend now a long time with different settings on n8n and nginx, but no success.

What is the error message (if any)?




Please share your workflow

Information on your n8n setup

  • **n8n version: 1.83.2
  • **Database (default: SQLite): Postgres
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • **Operating system: debian

hello @Martin_Schmid

What is the reason for having the N8N_EDITOR_BASE_URL variable? Usually, you don’t need it (as well as the WEBHOOK_TUNNEL_URL)

Hi @Martin_Schmid
Welcome to the community!

The only thing I can think of is that for your production URL matches the
location /form/ {} forwarding rule of nginx
and the test one matches the location /editor/ {} rule which has some additional configuration.

Have you tried changing the
location /form-test/ {} to location /editor/form-test/ to see if it changes anything?

Not sure if this should affect it at all. It should still work going throught the /editor/ rule but it’s the only difference between the two requests I can see.

Hi @Ventsislav_Minev,

thanks for your response. I tried all combinations without any changes.
Production form is working - test not.

Maybe a setting in n8n or a bug.

Hi @barn4k

That’s the solution!
I removed the 2 vars from my docker compose file.
Now it works. :grinning:

2 Likes

Happy to hear you fixed it and thanks for sharing :+1:

However now I wonder why this was breaking it. :sweat_smile: WEBHOOK_TUNNEL_URL
seems to have been replaced by WEBHOOK_URL so maybe having both was causing an issue.

If the issue was resolved, please mark my post as a solution by clicking on the little checkbox below the post so others can also see the solution.

1 Like

I think the root cause was the N8N_EDITOR_BASE_URL variable. The second one had no effect

1 Like

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