Response message:WebSocket I/O error: Socket is closed
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)
-
repo owner -
repo owner -
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 ForbiddenSampleResult fields:
ContentType:
DataEncoding: null
Thankyou
-
repo owner The response message tells you what’s wrong: “Forbidden”. You probably need to add an authorisation header or simulate a login first.
-
Hi, Peter.
I faced the same problem. And I get this error even when trying to run the sampler using the server from your plugin description - echo.websocket.org -
repo owner There is fairly simple explanation why the sample accessing echo.websocket.org is not working anymore….
-
repo owner - changed status to resolved
- Log in to comment
Server is returning incorrect http status. Are you sure you are connecting with a websocket server?