I am not sure why the test/example webhook from the docs returns an empty body payload at my targetURL
{
"AppName": "My Cool App",
"AppUrl": "www.example.com",
"Name": "My first webhook",
"TargetUrl": "http://my.service.com/ready/to/receive/post",
"ObjectTypes": ["HierarchicalRequirement", "Defect"],
"Expressions": [
{
"AttributeName": "PlanEstimate",
"Operator": ">",
"Value": 10
},
{
"AttributeName": "Workspace",
"Operator": "=",
"Value": "31685839-67fe-4f9d-9470-da56c222998b"
}
]
}
Here is the code:
app.post("/rally", function requestHandler(req, res) {
res.end("RALLY")
console.log({ data: req.body }) // { data: {} }
}
Here is the end of the req{}
....
_header: null,
_onPendingData: [Function: bound updateOutgoingData],
_sent100: false,
_expect_continue: false,
req: [Circular],
locals: [Object: null prototype] {},
[Symbol(kNeedDrain)]: false,
[Symbol(isCorked)]: false,
[Symbol(kOutHeaders)]: [Object: null prototype] { 'x-powered-by': [Array] }
},
body: {},
route: Route { path: '/rally', stack: [ [Layer] ], methods: { post: true } }
}