Httprequest post req gives "The request body was not well-formed error

This is silly all I am trying to do is to verify with Okta API with user and password as a post method. I tried the same with postman and it worked fine. here is the body of post
“{”“username”“:”“blah”“,”“password”“:”“blah!”“}”
the headers are Accept and Content-Type → (application\json).
I tried sending it as params, I still get the same error.

image
image

image

Kindly note and try
grafik

Also do a try with Postman and whenit is working share with us the resulting Curl of it

I tried the above still getting same err, here is the postman response for the same url and body

image

image

please export from postman the curl as we asked for

thanks for support

curl --location ‘https://okta.com/api/v1/authn
–header ‘Accept: application/json’
–header ‘Content-Type: application/json’
–header ‘Cookie: DT=DI1j9u39AhJQYKonFwc8cKs2A; JSESSIONID=C5BC59EFDB90CC7B9DF3A1BA60964C5E’
–data ‘{
“username”: “blah”,
“password”: “yada”,
“options”: {
“multiOptionalFactorEnroll”: true,
“warnBeforePasswordExpired”: true
}
}’

The issue is resolved. Weird thing, when I do a preview in the UiPath I get err, 400. When I debug it, I get back status 200. There are no var on anything in the body, something to be aware off.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.