Webhook is not reachable while using stackstorm in docker #5658
Unanswered
abdelelbehiri
asked this question in
Documentation
Replies: 1 comment
-
Hey guys after hustling for somedays, here the solution the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I am using Mac OS and I wanted to do the first examples in the getting started section in the documentation.
After I started stack storm using docker compose, I excuted the client container, then logged in, then I created a new rule. the rule definition is here. It is all the basic example from getting started, right now I am trying to reach my webhook using this command
curl -X POST https://localhost/api/v1/webhooks/sample -H "X-Auth-Token: d529f96ba6e44fce912cc63dc4e010c5" -H "Content-Type: application/json" --data '{"key1": "value1"}'
I try to do this from the same terminal inside the st2client, as well from another terminal outside the docker container.
But I always get the error in the terminal
curl: (7) Failed to connect to localhost port 443: Connection refused
.After I read the section of the Webhook in the documentation I found that webhook url would be like this
https://{$ST2_IP}/api/v1/webhooks/sample
, since in the trigger definition the url parmeter wassample
. But how I can actually find my {$ST2_IP}? shouldn't that be the ip of one of the containers?Beta Was this translation helpful? Give feedback.
All reactions