So we’re using RocketChat in our company, and we have multiple inbound webhooks to send notifications to some channels. This usually happens via python
(from our python framework) or curl
(via bash scripts) and works like a charm.
In principle from Prefect Cloud I can define a WebHook block that does the same job. However, I can’t find a way to compose the request body in a way that works.
This works (RocketChat expects the message under “text” key):
curl -X POST $URL -H 'Content-Type: application/json' --data '{"text": "debug"}'
This is how I define the WebHook and Automation are defined:
Result? RocketChat shows an empty message, meaning it got the notification but the body is nothing valid for display.
What am I doing wrong? I tried so many different things, this is so frustrating