fabaff / mqtt-panel

A web interface for MQTT
MIT License
418 stars 115 forks source link

'Connection reset by peer' when sending a message #6

Closed freetomik closed 4 years ago

freetomik commented 5 years ago

Hello, I am getting ConnectionResetError every time the test-messages.py script sends a message.

[2018-11-19 17:37:51,746] :: INFO :: transitions.core :: Exited state connected
[2018-11-19 17:37:51,746] :: INFO :: transitions.core :: Entered state disconnected
[2018-11-19 17:37:51,747] :: INFO :: hbmqtt.broker :: Listener 'default': 0 connections acquired
[2018-11-19 17:37:51,747] :: INFO :: hbmqtt.broker :: Listener 'default': 1 connections acquired
[2018-11-19 17:37:51,748] :: INFO :: hbmqtt.broker :: Connection from 127.0.0.1:34671 on listener 'default'
[2018-11-19 17:37:51,752] :: INFO :: transitions.core :: Exited state new
[2018-11-19 17:37:51,752] :: INFO :: transitions.core :: Entered state connected
[2018-11-19 17:37:53,749] :: WARNING :: hbmqtt.mqtt.protocol.handler :: BrokerProtocolHandler Unhandled exception in reader coro: ConnectionResetError(104, 'Connection reset by peer')

Firefox prints in console:

Firefox can’t establish a connection to the server at ws://127.0.0.1:3000/mqtt. mqttws31.js:977:17
Host: 127.0.0.1, Port: 3000, Path: /mqtt TLS: false index.html:53:13 

Any help appreciated. I use mqtt-server.py as a broker.

fabaff commented 5 years ago

This is a hbmqtt issue. A lot of Home Assistant users are seeing the same warning (e.g., https://github.com/home-assistant/home-assistant/issues/20613).

fabaff commented 4 years ago

hbmqtt support is no longer available as hbmqtt is in maintenance mode.

The recommendation is to use mosquitto.