Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
freetomik opened this issue Nov 19, 2018 · 2 comments
Closed

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

freetomik opened this issue Nov 19, 2018 · 2 comments

Comments

@freetomik
Copy link

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
Copy link
Owner

fabaff commented May 21, 2019

This is a hbmqtt issue. A lot of Home Assistant users are seeing the same warning (e.g., home-assistant/core#20613).

@fabaff
Copy link
Owner

fabaff commented Jun 20, 2020

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

The recommendation is to use mosquitto.

@fabaff fabaff closed this as completed Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants