Problem recording mobile app - gzipped JSON payload doesn't unzip

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem recording mobile app - gzipped JSON payload doesn't unzip

Alexander Boitsev
Hello,

I have noticed an unexpected behavior when recording a mobile
application traffic in JMeter. I have confirmed it in almost all
versions - starting from 2.13 to the latest trunk code.

I am recording traffic from a mobile app (iOS in my case) and in POST
requests (JSON) I see some unreadable data which is confirmed to be a
not unzipped payload.

I have tried recording with Charles Proxy and it shows JSON properly. So
it is JMeter who processes something incorrectly in my case.

Any ideas why this might happen? Never had such problems with mobile
apps before.

Thank you,
Alexander
Reply | Threaded
Open this post in threaded view
|

Re: Problem recording mobile app - gzipped JSON payload doesn't unzip

Philippe Mouawad
Hello,

I suspect the target website may be using Brotli compression so you're
facing:
- https://bz.apache.org/bugzilla/show_bug.cgi?id=62842

This bug is fixed in nightly build, which you can download from here:
- https://ci.apache.org/projects/jmeter/nightlies/

Can you give us some feedback ?
If issue persists, please enable in log4j2.xml this row and record the
problematic request :
    <Logger name="org.apache.http" level="debug" />

Or provide a HAR recording using Chrome.

Thanks
Regards
@philmdot
Co-author of
https://leanpub.com/master-jmeter-from-load-test-to-devops


On Wed, Jan 16, 2019 at 9:27 PM Alexander Boitsev <[hidden email]>
wrote:

> Hello,
>
> I have noticed an unexpected behavior when recording a mobile
> application traffic in JMeter. I have confirmed it in almost all
> versions - starting from 2.13 to the latest trunk code.
>
> I am recording traffic from a mobile app (iOS in my case) and in POST
> requests (JSON) I see some unreadable data which is confirmed to be a
> not unzipped payload.
>
> I have tried recording with Charles Proxy and it shows JSON properly. So
> it is JMeter who processes something incorrectly in my case.
>
> Any ideas why this might happen? Never had such problems with mobile
> apps before.
>
> Thank you,
> Alexander
>





<https://www.openstreetmap.org/#map=18/50.69454/3.16455>
Philippe M.
@philmdot
http://ubikloadpack.com
Reply | Threaded
Open this post in threaded view
|

Re[2]: Problem recording mobile app - gzipped JSON payload doesn't unzip

Alexander Boitsev
Thank you for your reply Philippe. No, using the nightly build didn't help. As I mentioned earlier I have tried before with the latest compiled trunk code.
Please find attached the debug log file.
Also I don't think we use Brotli here. We have Tomcat 8.5 with 'compression="on"' on backend.

Thank you,
Alexander


------ Original Message ------
From: "Philippe Mouawad" <[hidden email]>
To: "JMeter Users List" <[hidden email]>; "Alexander Boitsev" <[hidden email]>
Sent: 1/16/2019 3:34:04 PM
Subject: Re: Problem recording mobile app - gzipped JSON payload doesn't unzip

Hello,

I suspect the target website may be using Brotli compression so you're facing:

This bug is fixed in nightly build, which you can download from here:

Can you give us some feedback ?
If issue persists, please enable in log4j2.xml this row and record the problematic request :
    <Logger name="org.apache.http" level="debug" />

Or provide a HAR recording using Chrome.

Thanks
Regards
@philmdot
Co-author of


On Wed, Jan 16, 2019 at 9:27 PM Alexander Boitsev <[hidden email]> wrote:
Hello,

I have noticed an unexpected behavior when recording a mobile
application traffic in JMeter. I have confirmed it in almost all
versions - starting from 2.13 to the latest trunk code.

I am recording traffic from a mobile app (iOS in my case) and in POST
requests (JSON) I see some unreadable data which is confirmed to be a
not unzipped payload.

I have tried recording with Charles Proxy and it shows JSON properly. So
it is JMeter who processes something incorrectly in my case.

Any ideas why this might happen? Never had such problems with mobile
apps before.

Thank you,
Alexander



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Problem recording mobile app - gzipped JSON payload doesn't unzip

Felix Schumacher


Am 16. Januar 2019 22:00:17 MEZ schrieb Alexander Boitsev <[hidden email]>:
>Thank you for your reply Philippe. No, using the nightly build didn't
>help. As I mentioned earlier I have tried before with the latest
>compiled trunk code.
>Please find attached the debug log file.

The list seems to have stripped off the attachement.

Regards,
 Felix

>Also I don't think we use Brotli here. We have Tomcat 8.5 with
>'compression="on"' on backend.
>
>Thank you,
>Alexander
>
>
>------ Original Message ------
>From: "Philippe Mouawad" <[hidden email]>
>To: "JMeter Users List" <[hidden email]>; "Alexander Boitsev"
><[hidden email]>
>Sent: 1/16/2019 3:34:04 PM
>Subject: Re: Problem recording mobile app - gzipped JSON payload
>doesn't
>unzip
>
>>Hello,
>>
>>I suspect the target website may be using Brotli compression so you're
>
>>facing:
>>- https://bz.apache.org/bugzilla/show_bug.cgi?id=62842
>>
>>This bug is fixed in nightly build, which you can download from here:
>>- https://ci.apache.org/projects/jmeter/nightlies/
>>
>>Can you give us some feedback ?
>>If issue persists, please enable in log4j2.xml this row and record the
>
>>problematic request :
>>     <Logger name="org.apache.http" level="debug" />
>>
>>Or provide a HAR recording using Chrome.
>>
>>Thanks
>>Regards
>>@philmdot
>>Co-author of
>>https://leanpub.com/master-jmeter-from-load-test-to-devops
>>
>>
>>On Wed, Jan 16, 2019 at 9:27 PM Alexander Boitsev
><[hidden email]>
>>wrote:
>>>Hello,
>>>
>>>I have noticed an unexpected behavior when recording a mobile
>>>application traffic in JMeter. I have confirmed it in almost all
>>>versions - starting from 2.13 to the latest trunk code.
>>>
>>>I am recording traffic from a mobile app (iOS in my case) and in POST
>>>requests (JSON) I see some unreadable data which is confirmed to be a
>>>not unzipped payload.
>>>
>>>I have tried recording with Charles Proxy and it shows JSON properly.
>
>>>So
>>>it is JMeter who processes something incorrectly in my case.
>>>
>>>Any ideas why this might happen? Never had such problems with mobile
>>>apps before.
>>>
>>>Thank you,
>>>Alexander
>>
>>
>>
>>
>>
>><https://www.openstreetmap.org/#map=18/50.69454/3.16455>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem recording mobile app - gzipped JSON payload doesn't unzip

Felix Schumacher
In reply to this post by Alexander Boitsev


Am 16. Januar 2019 21:27:16 MEZ schrieb Alexander Boitsev <[hidden email]>:
>Hello,
>
>I have noticed an unexpected behavior when recording a mobile
>application traffic in JMeter. I have confirmed it in almost all
>versions - starting from 2.13 to the latest trunk code.

Does that mean, that you have not tried all versions, or that some versions didn't show that behavior?

>
>I am recording traffic from a mobile app (iOS in my case) and in POST
>requests (JSON) I see some unreadable data which is confirmed to be a
>not unzipped payload.

Do the response headers look correct? Is the site reachable publicly for tests?

>
>I have tried recording with Charles Proxy and it shows JSON properly.

Are the headers the same as those recorded with jmeter?

Regards,
 Felix

>So
>it is JMeter who processes something incorrectly in my case.
>
>Any ideas why this might happen? Never had such problems with mobile
>apps before.
>
>Thank you,
>Alexander

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re[2]: Problem recording mobile app - gzipped JSON payload doesn't unzip

Alexander Boitsev
I have tried with 2.13, 3.3, 4.0, 5.0 and the latest trunk. All versions
showed the same behavior.
The response headers look correct. The site is internal, as well as the
mobile app at the moment.
The headers looks identical in JMeter and Charles.

Regards,
Alexander

------ Original Message ------
From: "Felix Schumacher" <[hidden email]>
To: "JMeter Users List" <[hidden email]>
Sent: 1/16/2019 4:16:15 PM
Subject: Re: Problem recording mobile app - gzipped JSON payload doesn't
unzip

>
>
>Am 16. Januar 2019 21:27:16 MEZ schrieb Alexander Boitsev <[hidden email]>:
>>Hello,
>>
>>I have noticed an unexpected behavior when recording a mobile
>>application traffic in JMeter. I have confirmed it in almost all
>>versions - starting from 2.13 to the latest trunk code.
>
>Does that mean, that you have not tried all versions, or that some versions didn't show that behavior?
>
>>
>>I am recording traffic from a mobile app (iOS in my case) and in POST
>>requests (JSON) I see some unreadable data which is confirmed to be a
>>not unzipped payload.
>
>Do the response headers look correct? Is the site reachable publicly for tests?
>
>>
>>I have tried recording with Charles Proxy and it shows JSON properly.
>
>Are the headers the same as those recorded with jmeter?
>
>Regards,
>  Felix
>
>>So
>>it is JMeter who processes something incorrectly in my case.
>>
>>Any ideas why this might happen? Never had such problems with mobile
>>apps before.
>>
>>Thank you,
>>Alexander
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>