Cannot read json data using Websocket Single Read Sampler

Issue #101 closed
Former user created an issue

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)

  1. Peter Doornbosch 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

  2. Log in to comment