T
Typebot•11mo ago
jfk86d

HTTP Request custom body not working.

I added a HTTP Request integration to my flow, defined the URL where the POST should be sent, and then defined the JSON for the variables I want in the custom body. On the receiving side of the POST, the body is empty. I tried the manual variable population for test and still remained empty. Am I doing something incorrectly? Thanks for your help.
No description
3 Replies
Baptiste
Baptiste•11mo ago
Can you try with webhook.site? It should work If not, provide a reproduction for us to try 🙂
jfk86d
jfk86dOP•11mo ago
I tried webhook.site and it did receive the json body 🙂 When I pointed to our Azure Logic App url, it did not receive the json body 😕 . Do you know of any tips or users who have it working with a Azure Logic App? Thanks. I got it to work, yet I need to advice. I had to add the header Content-Length and a value. Is there a way to dynamically estimate the Content-Length of my JSON data that is in the custom body? Maybe a variable function for length that can then be place in the value window for the Content-Length key header. {{={{My variable}}.length()=}}
jfk86d
jfk86dOP•11mo ago
I figured out a way to calculate the content length using Set variable with JS code. Then I set the Content-Length header to the contentLength variable. It solved it for Logic Apps.
No description

Did you find this page helpful?