Hi Team, Even though i am making POST call but on backend server i am getting a GET call and i can validate response using POSTMan too. When i am making get call from postman am am getting same response what i am getting fro K6 POST response.My Code is
const url = 'https://MyServiceHost/ReadHelloWorld.v1';
let headers = { 'Content-Type': 'application/json' };
let data = "['Harish']";
console.log(JSON.stringify(data))
const before = new Date().getTime();
group("POST", function() {
let res = http.post(url, JSON.stringify(data), { verb: "post" });
//let j = JSON.parse(res.body);
console.log(">>>>>>>>>>"+res.body)
check(res, {
"status is 200": (r) => r.status === 200
});
});
Response-
{"error":"(RECIPIENT_FAILURE,0) Timed out after waiting 20000(ms) for a reply. address: __vertx.reply.2539024, repliedAddress: ReadHelloWorld.v1/1.5.0"} source=console