Hey Everyone, I am trying to send POST request from UiPath Studio HTTP Request Activity but I am receiving the error shown in the screenshot attached below. But when I use the same CURL in postman it sends me the expected response. So I don’t know were is the issue.
Check the headers in UiPath that they match those in Postman, especially the Content-Type header which should be set to ‘application/json’.
For the HTTP Request activity, you usually do this in the “Body” property in the Properties Panel so make sure the JSON in UiPath is properly structured. Missing or extra commas, quotation marks, or braces can cause an ‘Invalid JSON’ error.
If your JSON has special characters, you might have to add escape characters in UiPath, even if you didn’t need to do this in Postman.
What’s the content of the HTTP POST request? I see in your screenshot that the Body property is blank. You should put whatever you used in postman in the Body property then try sending the request again.