Getting Socket is closed error in jmeter

Issue #257 invalid
Former user created an issue

We are trying to hit below curl request in web socket open connection sampler.

curl 'wss://qa.meet.risebird.io/socket.io/?EIO=4&transport=websocket&sid=x6zJVrYTSddEEOLmAADp' \ -H 'Pragma: no-cache' \ -H 'Origin: https://qa.meet.risebird.io' \ -H 'Accept-Language: en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7' \ -H 'Sec-WebSocket-Key: FniQssEQOf5SVhPUcGzhmw==' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36' \ -H 'Upgrade: websocket' \ -H 'Cache-Control: no-cache' \ -H 'Cookie: PHPSESSID=5dj91vm1mds9bsarl7l8t9rgh9' \ -H 'Connection: Upgrade' \ -H 'Sec-WebSocket-Version: 13' \ -H 'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits' \ --compressed

But we are getting an error as mentioned in the screen shot.

Issues which i feel: 1. There is no port number in my request but when i am not giving any port number getting an error as "Sampler error: Port number '' is not a number." 2. Sid is generated by a different request and in my script i have placed websocket open connection sampler just after when i am generating sid and then passing newly generated sid to subsequent websocket sampler but even then, i am getting "WebSocket I/O error: Socket is closed"

So need your help in this.

Comments (3)

  1. Log in to comment