emqx / mqtt-jmeter

MQTT JMeter Plugin
https://www.emqx.com/en
Apache License 2.0
447 stars 193 forks source link

MQTT WS Protocol Issue #89

Open karthiklingasamy opened 4 years ago

karthiklingasamy commented 4 years ago

Hi Team,

I'm using jemer version 5.3. Try to connect to MQTT WS Protocol by using the JAR (mqtt-xmeter-2.0.2-jar-with-dependencies). My connect sampler failed to connect. However I can able to succesfully using MQTT client tools(MQTT Box).

MQTT

MQTT Box Connection Detail: My Host to Connect: xxx.xxx.xxx.xxx/mqtt No need to add any other port,SSL and userid and passsword

Jmeter MQTT Connect samplet Server Name or IP:xxx.xxx.xxx.xxx Protocol:WS

WS Path: Try with different option Option1: WS Path: /mqtt Option2: WS Path: mqtt Option3: WS Path: (Leave Empty)

Error: Getting below error Client [conn_678e967e60434a03b9] failed with exception.

Response code:502 Response message:Failed to establish Connection null

Please help

jinrm commented 4 years ago

Hi, did you fill in the field "Port number"? If not, please try again after entering the right port #.

thanks, May

karthiklingasamy commented 4 years ago

Thanks jinrm. After filling the port number it works fine. Now i can able to connect succesfully. One more help. Below is the JSON message I'm publishing. On the subscribe side im seeing some funny char. How to escap from this

JSON MQTT

jinrm commented 4 years ago

No problem. plz check the message to avoid using full-width symbols. Thanks. -May

karthiklingasamy commented 3 years ago

Hi Jinrm,

Thanks after adding the port number now the issue is resolved. Thanks lot

On Thu, Jul 16, 2020 at 9:21 AM jinrm notifications@github.com wrote:

Hi, did you fill in the field "Port number"? If not, please try again after entering the right port #.

thanks, May

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emqx/mqtt-jmeter/issues/89#issuecomment-659141599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOOFOXQISX5LGIMVAXMMYL3R3Z2LZANCNFSM4O3M5RDA .