Error Array on http request

Hi my Dear friends;
I try to insert my data to my table on appwrite by http request node.

I try to insert an array to one column

But unfortunately I get bellow error:
ERROR: The data in “Body Parameters” is no valid JSON. Set Body Content Type to “RAW/Custom” for XML or other types of payloads

I think I should find ways to convert [Array:[…]] to […]
Can anyone help me please?
Best Regards;

1 Like

Hi @mooghermez, the HTTP Request node is unfortunately a bit picky about which data format it accepts. It requires actual JSON objects instead of JSON-like strings in this example case.

Something like this should do:

In this example, I’ve changed the expression used in your HTTP Request node to return objects rather than strings.

Also, thanks so much for providing a ready-to-run example showing the error. This makes it so much easier to understand what’s happening :slight_smile:

1 Like