Websocket Request-Response Sampler gives ["E",0,"InvalidUrl","Cannot interpret '/'"]' error

Issue #182 closed
Minna created an issue

Hi Peter,

I have given the hostname and port in Websocket Open connection port(path field is empty), added a header with parameter Sec-WebSocket-Protocol and passsed Bearer authorization token, added Request-Response sampler and given the api request path

Websocket Open connection is successful and Request-Response sampler gives the error as below

Response code:Sampler error: unexpected frame type (close).
Response message:Received: Close frame with status code 4000 and close reason '["E",0,"InvalidUrl","Cannot interpret '/'"]'

Can you please tell me what am I doing wrong, since I didn’t get any information related to this error.

Also I am entirely new to both websocket and JMeter. So as far as my understanding for http requests, say if my api is http://host:port/api/client, I will give api/client in path field of http sampler.

so in websocket sampler, should I give this in Path field or in request field. What is the difference between both.

Also if I have to pass any query parameters, where and how should i pass it? Does the plugin support csv data set config element

Thanks,

Minna

Comments (4)

  1. Minna reporter

    A little more exploring has given me the answer for all my questions posted here and also solved the error i was facing.Couldn't find an option to delete the question..so changing status to resolved

  2. Log in to comment