Skip to content

Webhooks not working #6271

Answered by fdrab
oconnell-fastly asked this question in Q&A
Discussion options

You must be logged in to vote

so you're sending a webhook request from within the cluster, correct?

I've created a sample webhook and sent a request to it from postman (form my pc) and it did the thing it was supposed to do.

When calling from within the cluster, I usually use the external address of st2web anyway, as it acts as a proxy to other services

also logs are usually accessible by issuing kubectl logs <pod name> -n <namespace> or kubectl logs deploy/<deployment name> -n <namespace>

I think your example would work if you removed the "/api" from your call, as that one is re-written from outside by nginx on st2web:

curl -X POST http://10.100.111.13:9101/v1/webhooks/sample -H "X-Auth-Token: $token" -H "Content-Typ…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by oconnell-fastly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants