- marked as task
Cannot read json data using Websocket Single Read Sampler
Issue #101
closed
I tried to read the json data in the frame of a websocket request using Websocket Single Read Sampler. But got the error :
"Response code: Sampler error: unexpected frame type. Response message: Received: Ping frame with application data 'ping'"
Comments (3)
-
repo owner -
repo owner Hi,
This means your server is sending ping frames that your test scenario does not take into account.
The easiest way to solve this, is by adding a "Ping / Pong Frame Filter", this will make sure the ping frame doesn't show in the "Single Read Sampler". Also, check the "Automatically respond to ping with a pong" checkbox.
There is a sample in the samples directory: https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/samples/PingFilter.jmx
Hth, Peter
-
repo owner - changed status to closed
- Log in to comment