jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sankar Das <007bhabanisan...@gmail.com>
Subject Re: Error while doing API testing using JMeter
Date Fri, 20 Jan 2017 11:02:10 GMT
Thank You, Ivan for your inputs,

Tried with rerunning the script exactly like postman, like added
User-Agent, Accept-Encoding, Accept-Language and changed the Content-Type
from text/xml to application/xml in the Header Manager.
 It started working.



On Thu, Jan 19, 2017 at 9:39 PM, Ivan Rancati <ivan.rancati@gmail.com>
wrote:

> Hello,
>
> two ideas:
>
> - what encoding are you using? In your jmeter.log file there should be a
> line similar to
> sampleresult.default.encoding is set to UTF-8 | ISO-8859-1 ...
> From your error message, it could be that the server expects utf-8 but the
> request is differently encoded
>
> - try to intercept the two outgoing requests, with a proxy such as
> Webscarab or Fiddler, then compare them
>
>
> Info you could provide to the mailing list:
> - operating system
> - version of Jmeter and jdk/jre
> - implementation used in your http sampler (3.1, 4, java)
>
> best regards
> Ivan
>
> On Thu, Jan 19, 2017 at 4:14 PM, Sankar Das <007bhabanisankar@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am trying to do one api testing using Jmeter. When firing the same
> > request from Postman I am getting proper response with response code 200.
> >
> > But when trying to do the same from JMeter getting 200 response code and
> > success message but the request is not passing through. Whereas in
> Postman,
> > it is passing and one orderid is gretting created.
> >
> > When checked in logs, it is saying message request is not in proper
> format
> > and getting below error message.
> >
> > Error Massage:
> >
> > org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException:
> Invalid
> > UTF-8 middle byte 0x6b (at char #4353, byte #3999)
> >
> > What can I do to prevent this error. Please help.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message