Hi, hope someone can help with this, I am about to go insane
Describe the issue/error/question
When I add a webhook and specify the path “api” the full url will be http://ip:port/webhook-test/api
But if I add a variable to the path like api/:version the webhook url created be like http://ip:port/webhook-test/5f5040e5-463c-43fa-bbd0-64b1364e9a07/api/:version
So n8n automatically add the webhook id to the url. I see no way of changing this in the UI.
That’s a good find. I wasn’t aware of this, but will make sure to add it to our internal bug tracker. Sorry for the trouble, we’ll make sure to let you know once this is fixed.
Perhaps you can consider using query parameters until this is fixed. As in using a path of api and then opening a URL like .../api?foo=bar to send a foo parameter with a value of bar?
Hi @MutedJam
Thank you for response. I ended up accepting the webhook id in the url (partly).
If i create a webhook with a paramter i get a long url with the ID in the URL.
If I copy this one and add a second paramter the base part of the URL persist.
So now I get:
ip:port/webhookId1/:path1/
ip:port/webhookId1/:path2
And if I end up exposing this online I can hide the webhookId1 part with the loadbalancer.
This is actually not a bug. That was implemented like that on purpose for technical reasons. Is probably something that will be reworked in the future but as far as I am aware is that sadly nothing that will become a priority any time soon.
What exactly do you try to do? Because there is maybe a workaround.