Sending an array variable via the HTTP request block
Hi,
any idea how we can send arrays via the webhook body?
For example, this custom body does not work (Error 500) if {{var}} is set an array, such as ["A", "B", "C"] in a previous block
{
"input": {{var}}
}
I've examined my endpoint logs and it seems that the request does sends an empty body, when {{var}} is an array. I've also tried putting quotes before and after the variable -
i.e.,
"{{var}}", still this did not work.
If you use a typical string variable, such as "A B C", the call just works.
any idea how we can send arrays via the webhook body?
For example, this custom body does not work (Error 500) if {{var}} is set an array, such as ["A", "B", "C"] in a previous block
{
"input": {{var}}
}
I've examined my endpoint logs and it seems that the request does sends an empty body, when {{var}} is an array. I've also tried putting quotes before and after the variable -
i.e.,
"{{var}}", still this did not work.
If you use a typical string variable, such as "A B C", the call just works.