0
votes

Performing GET Requests which returns a JSON response. JMeter is getting Statua code 200 but in Response, it says: NO way found to render data. I tried the same request in POSTMAN and it is working fine.

3

3 Answers

1
votes

We are not telepathic enough to state why exactly request in Postman works and request in JMeter doesn't, in general the answer would be: you're not sending the same requests.

Double check the following:

  1. Request URL, if request parameters have some non-ASCII data it needs to be url-encoded
  2. Request headers, in particular Content-Type. In JMeter request headers can be added/modified using HTTP Header Manager
  3. Request body (if any), again encoding might be very important

In general given your request works in Postman you can just record it using JMeter's HTTP(S) Test Script Recorder

  1. Start JMeter's HTTP(S) Test Script Recorder
  2. Configure Postman to use JMeter as the proxy

    enter image description here

  3. Run your request in Postman
  4. That's it, JMeter should capture the request under the Recording Controller
0
votes

Compared to the Postman and JMeter requests. Postman was working without passing Accept and Cache-Control headers but Jmeter requires it. After adding these 2 in headers, I started getting a response. And I changed few JMeter properties to avoid checking the response size check.

0
votes

For me it started working after adding below content in request header. specially accept attribute.

  "Accept": "application/json, text/javascript, */*; q=0.01",

and

  "Content-Type": "application/json; charset=UTF-8",