HTTP Request - Unexpected character encountered while parsing value

I am trying to utilize a post method in the http request activity but continue to get back a 400 error. I am able to successfully utilize other methods. If anyone has any insight on how to resolve this error your help is greatly appreciated.

Error:
{“errors”:{“”:[“Unexpected character encountered while parsing value: c. Path ‘’, line 0, position 0.”]},“type”:“RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content or more validation errors occurred.”,“status”:400,“traceId”:“00-3702e9dbfcebe531fd4d65a6a8e273a1-8e99b61a6a634353-00”}

@ken.dean

Is it a post request?

And what body are you using…

Please procide more details on the request

Cheers

It is indeed a post request and I have sent over an empty body “” and also a body similar to this

JObject.FromObject(
New With {
key.oderType = “test”,
key.botId = “123”,
key.documentNumber = “1234”,
}
)

@ken.dean

Do both have same erro?

Is the body format selected as application/json…

For ease…did you try to copy the curl from postman and import in http request? That way we can get the exact working requested imported in UiPath as well

Cheers

Yes unfortunately, both with the same error. The body format is application/json and endpoint is using swaggerui.

@ken.dean

Can you copy curl and import it and check?

And what authentication is being used…can you provide all the details being passed or first check with curl

And you are serializing the json again?

As body needs string format by default

Cheers