Response message:WebSocket I/O error: Socket is closed

Issue #201 resolved
Former user created an issue

I am working with Websocket Open Connection sampler, i gave wss, server name, and default port 80 also tried with port 443. When am running I got this Thread Name:Thread Group 1-1 Sample Start:2021-03-19 12:05:48 IST Load time:1350 Connect Time:0 Latency:0 Size in bytes:0 Sent bytes:0 Headers size in bytes:0 Body size in bytes:0 Sample Count:1 Error Count:1 Data type ("text"|"bin"|""): Response code:200 Response message:Got unexpected status 200 with statusLine:HTTP/1.1 200 OK

SampleResult fields: ContentType: DataEncoding: null

I am new to JMeter please help me with solving this.

Comments (7)

  1. Peter Doornbosch repo owner

    Server is returning incorrect http status. Are you sure you are connecting with a websocket server?

  2. Ms. SUKANNIYA S

    Hi Peter,

    Yes, am using the WebSocket server. I tried with giving full path and port and getting Sampler result as :---

    Thread Name:Thread Group 1-1
    Sample Start:2021-03-24 15:58:20 IST
    Load time:162
    Connect Time:0
    Latency:0
    Size in bytes:0
    Sent bytes:0
    Headers size in bytes:0
    Body size in bytes:0
    Sample Count:1
    Error Count:1
    Data type ("text"|"bin"|""):
    Response code:403
    Response message:Got unexpected status 403 with statusLine:HTTP/1.1 403 Forbidden

    SampleResult fields:
    ContentType:
    DataEncoding: null

    Thankyou 🙂

  3. Peter Doornbosch repo owner

    The response message tells you what’s wrong: “Forbidden”. You probably need to add an authorisation header or simulate a login first.

  4. Log in to comment