Node HTTP : parameter is expected to be of type "array", but is of type "string"

Hi everyone !

I try to send a patch/post with http-node to SuiteCRM.
I’m able to do that with fix data. For exemple, it’s OK with :

{{ 
{"type": "AOS_Products", 
"id": "d56eaa13-b3e5-197f-b060-630a426533cd", 
"attributes": {
"name": "test Product"}
}
}}

But when i try to insert data from previous nodes like that :

{{ 
{"type": "AOS_Products", 
"id": "d56eaa13-b3e5-197f-b060-630a426533cd", 
"attributes": {
"name": $node["Set5"].json["name"]}
}
}}

I’ve got this errror :

is expected to be of type “array”, but is of type “string”

Here is the node :

Any idea ?

I use the n8n version: 0.212.0

I reply to myself as i’ve found a solution : i’ve inserted a set node before the http node.
And now the http node only contains :

{"data" :{{$node["Set3"].json["code_maj"]}}}

Hope it will help other people !

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.