Error "Unexpected frame type received in sampler 'WebSocket request-response Sampler': Close frame with status code 1002 and close reason 'null'"

Issue #110 closed
Hitesh Gupta created an issue

Getting below Error while making a request with JSON request payload into WebSocket request-response Sampler - Error - Unexpected frame type received in sampler 'WebSocket request-response Sampler': Close frame with status code 1002 and close reason 'null'

I'm attaching screenshots of - 1. Where I'm making a request with json parameters into WebSocket request-response Sampler 2. Where I'm getting error into error logs

Kindly help me in resolving this issue.

Comments (2)

  1. Peter Doornbosch repo owner

    This means the server is sending a Close frame instead of the Text Frame you were expecting. Of course, i don't know why your server is doing this, but usually this means the server cannot parse the request correctly. In your case, this probably means the server rejects the JSON payload. My advise would be to check the server logs; if you are lucky the server logs why it rejects the JSON. Otherwise, use a regular client to make a successful request and use Wireshark or a similar tool to inspect what is sent over the line exactly.

    Hth, Regards peter

  2. Log in to comment