Nain
Nain

Reputation: 23

Jmeter Json POST Request Failing

In Jmeter when submitting a POST request which includes Json string in the body the transaction is failing with below message and HTTP 500 error-

`{"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""}`

Can someone please tell what I am doing wrong here?

Below is how the failing sample (REQ_2_1) request body looks like-

Screenshot: Script

Screenshot: Header for the POST request

Json request Body - 1 of 2

Json request Body - 2 of 2

Upvotes: 0

Views: 306

Answers (1)

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34526

You JSON body is wrong and break the JSON request:

enter image description here

It should probably be:

"jsonString":"${MyJSONString}"

Upvotes: 0

Related Questions