ehsueh
ehsueh2w ago

ehsueh - Hi, is there a way to make sure the re...

Hi, is there a way to make sure the request body (of a REST API trigger) is not parsed as JSON or string first? I need the raw buffer for verification. Tried AI builder (compass), it wasn't able to achieve what I need.
7 Replies
Gaurav Chadha
Gaurav Chadha2w ago
Hi @ehsueh set the Advanced Options to Text then make a request with content type set to raw, it will work.
No description
Gaurav Chadha
Gaurav Chadha2w ago
No description
ehsueh
ehsuehOP2w ago
Thank you! That worked!!
ehsueh
ehsuehOP2w ago
Can I enable JS in those input fields? I want a raw field that's raw plain text for verification. And keep the original body field as JSON (I tried JSON.parse() but it would just concate the string). The rest of the workflow already assumed body() is JSON so I figure that will be the easiest way without manually going through all the nodes checking where I've used body.
No description
Gaurav Chadha
Gaurav Chadha7d ago
you can handle this after input processing in the worklow nodes.
ehsueh
ehsuehOP7d ago
but then I'll have to manually update all nodes after
Gaurav Chadha
Gaurav Chadha5d ago
when using raw body, you should not parse it to stringify, the other option for request content type application/json handles this.

Did you find this page helpful?