Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When scaling.webhook is enabled webhook-test paths are returning 404 #75

Open
aeb-dev opened this issue Feb 22, 2024 · 4 comments
Open

Comments

@aeb-dev
Copy link

aeb-dev commented Feb 22, 2024

ingress:
  enabled: true
  ...
scaling:
  enabled: true
  webhook:
    enabled: true

I have the configuration above for webhooks. When I deploy n8n and trigger a webhook based on test-url, I always get 404. I changed the ingress definition of path:/webhook-test/ to use main n8n pod it works as expected.

My guess is that setting https://github.com/n8n-io/n8n/blob/master/packages/cli/src/config/schema.ts#L718 (N8N_DISABLE_PRODUCTION_MAIN_PROCESS) to true only affects the production url, so the test url should still point to main n8n

@Vad1mo
Copy link
Member

Vad1mo commented Feb 22, 2024

Hmm, what do you suggest could be a solution.

@aeb-dev
Copy link
Author

aeb-dev commented Feb 22, 2024

I'm not 100% sure but I feel like webhook-test part of Ingress should point to main n8n process

@egandro
Copy link
Contributor

egandro commented Apr 20, 2024

N8N_DISABLE_PRODUCTION_MAIN_PROCESS

I think the -test is missing here:

https://github.com/8gears/n8n-helm-chart/blob/master/templates/service.webhooks.yaml

@egandro
Copy link
Contributor

egandro commented Apr 20, 2024

That looks ok...

- path: {{ . }}webhook/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants