WebSocket Single Read Sampler reports unexpected frame type (close)

Issue #253 invalid
Former user created an issue

Hi ,

I'm testing a chatbot that uses WebSocket to send messages. Configured the test plan in JMeter and used the WebSocket samplers a. WebSocket Open Connection: to Open the connection - Status passed (101) b. WebSocket Single Write Sampler: (use existing connection) - Message in Request data - Status passed c. WebSocket Single Read Sampler: (use existing connection) - Failed - error Response Code: (unexpected frame type close) Response Message: Received: Close frame with status code null and close reason 'null'

What do the error mean? Please help to resolve this issue.

Comments (3)

  1. Peter Doornbosch repo owner

    The error means that the server is closing the websocket connection. This is reported “unexpected” because you configured a read sampler, so your test plan is expecting to read a data frame, but instead it encounters a close frame.

    Hth
    Peter

  2. Log in to comment