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

Error message when connect fails #108

Open
IssaHanou opened this issue Dec 19, 2019 · 0 comments
Open

Error message when connect fails #108

IssaHanou opened this issue Dec 19, 2019 · 0 comments

Comments

@IssaHanou
Copy link
Owner

IssaHanou commented Dec 19, 2019

Content

When device is unable to connect to a broker, it gives an ugly error. This should be fixed.

Error

2019-12-19 10:10:31,900 [INFO ]  Start of log for device: display
Traceback (most recent call last):
  File "D:/GitHub/BEP_1920_Q2/cc_library/src/scripts/display.py", line 47, in <module>
    device.main()
  File "D:/GitHub/BEP_1920_Q2/cc_library/src/scripts/display.py", line 42, in main
    self.start()
  File "D:\GitHub\BEP_1920_Q2\cc_library\src\sciler\scclib\device.py", line 54, in start
    self.scclib.start(loop, stop)
  File "D:\GitHub\BEP_1920_Q2\cc_library\src\sciler\scclib\app.py", line 65, in start
    self.__connect()
  File "D:\GitHub\BEP_1920_Q2\cc_library\src\sciler\scclib\app.py", line 112, in __connect
    self.client.connect(self.host, self.port, keepalive=10)
  File "C:\Users\issah\AppData\Local\Programs\Python\Python37-32\lib\site-packages\paho\mqtt\client.py", line 937, in connect
    return self.reconnect()
  File "C:\Users\issah\AppData\Local\Programs\Python\Python37-32\lib\site-packages\paho\mqtt\client.py", line 1071, in reconnect
    sock = self._create_socket_connection()
  File "C:\Users\issah\AppData\Local\Programs\Python\Python37-32\lib\site-packages\paho\mqtt\client.py", line 3522, in _create_socket_connection
    return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
  File "C:\Users\issah\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 727, in create_connection
    raise err
  File "C:\Users\issah\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 716, in create_connection
    sock.connect(sa)
socket.timeout: timed out

Process finished with exit code 1
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

1 participant