Error observed in the response body of the websocket Request-response sampler

Issue #124 new
Nikhil created an issue

Hello, One of the applications requires establishing a websocket connection to send and receive chat messages. These are the steps/samplers in my script
1.Establish a connection using a Websocket Open connection sampler with connectionid and token being fetched from the application.
Response code: 101
Response message: Switching Protocols
2.Using a WebSocket request-response Sampler, send a JSON message with a chat message data. The expected response as observed in the browser response relays back the sent message with a created by field. However, I am getting the following response in JMeter and the chat message isint getting updated on the application either-
Response code: 200
Response message: OK
{"error":"Handshake was canceled."}?
Would anyone have an idea on what's causing it?Thanks

Comments (1)

  1. Peter Doornbosch repo owner

    I think your server is expecting an additional handshake on top of the websocket connection (which is correctly established, given the result from the open connection sampler). The easiest way to find out is to use WireShark to capture the communication between the browser and the server.

    Hth,

    Peter

  2. Log in to comment