You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Alexander Boitsev <a....@gmail.com> on 2019/01/16 20:27:16 UTC

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

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

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

Posted by Alexander Boitsev <a....@gmail.com>.
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" <fe...@internetallee.de>
To: "JMeter Users List" <us...@jmeter.apache.org>
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 <a....@gmail.com>:
>>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: user-unsubscribe@jmeter.apache.org
>For additional commands, e-mail: user-help@jmeter.apache.org
>

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

Posted by Felix Schumacher <fe...@internetallee.de>.

Am 16. Januar 2019 21:27:16 MEZ schrieb Alexander Boitsev <a....@gmail.com>:
>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: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


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

Posted by Felix Schumacher <fe...@internetallee.de>.

Am 16. Januar 2019 22:00:17 MEZ schrieb Alexander Boitsev <a....@gmail.com>:
>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" <p....@ubik-ingenierie.com>
>To: "JMeter Users List" <us...@jmeter.apache.org>; "Alexander Boitsev" 
><a....@gmail.com>
>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
><a....@gmail.com> 
>>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: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


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

Posted by Alexander Boitsev <a....@gmail.com>.
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" <p....@ubik-ingenierie.com>
To: "JMeter Users List" <us...@jmeter.apache.org>; "Alexander Boitsev" 
<a....@gmail.com>
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 <a....@gmail.com> 
>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>

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

Posted by Philippe Mouawad <p....@ubik-ingenierie.com>.
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 <a....@gmail.com>
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>