Hi, i having issue sending received data to another webhook.
I received the data from a source. I would like to send the all the data to another webhook after filter certain data. But i can’t set the HTTP part correctly. It keep show error. Anyone know how to solve it?
Can you also share what the content of Body Parameters is? I’m assuming it’s an expression.
I ran into something similar. Unfortunately the templating language n8n expressions use is pretty limited and has nothing built in to sanitize this data. I ended up using a function node with the following code to stringify the body before sending to the HTTP request node.
// Loop over inputs and add a new field called 'myNewField' to the JSON of each one
for (item of items) {
item.json.httpBody = JSON.stringify({
message: item?.json?.body?.mesage.trim() || 'N/A',
});
}
return items;
And my express in the body of the HTTP Request node is {{$json["httpBody"]}}