Jmeter websockets testing - Illegal character in query



  • I'm getting this error when executing script:

    java.net.URISyntaxException: Illegal character in query at index 65: https://devadmin.modetrans.com/fusionsocket?Accept-Encoding=gzip, deflate, br&Accept-Language=en-US,en;q=0.9&Cache-Control=no-cache&Connection=Upgrade&Host=rtdev.service.signalr.net&Origin=https://devfront.modetrans.com&Pragma=no-cache&Sec-WebSocket-Extensions=permessage-deflate; client_max_window_bits&Sec-WebSocket-Key=sr0WkpBGbtlraMcYZZkLLQ==&Sec-WebSocket-Version=13&Upgrade=websocket&User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/
    

    Jmeter settings: JMeter settings



  • Your configuration is wrong, you should put only devadmin.modetrans.com bit to the "Server Name or IP" field of the HTTP Request sampler like:

    enter image description here

    You might also be interested in JMeter WebSocket Samplers - A Practical Guide which explains the usage of the JMeter WebSocket Samplers plugin (the same limitations apply there as well, only valid DNS hostname is accepted in the "Server Name or IP" field


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2