T
Typebotā€¢4w 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ā€¢4w ago
Can you try with webhook.site? It should work If not, provide a reproduction for us to try šŸ™‚
jfk86d
jfk86dā€¢4w 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
jfk86dā€¢4w 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