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

Trap: ConnectionResetError: [Errno 104] Connection reset by peer #39

Closed
jimboca opened this issue Feb 20, 2019 · 1 comment
Closed

Trap: ConnectionResetError: [Errno 104] Connection reset by peer #39

jimboca opened this issue Feb 20, 2019 · 1 comment

Comments

@jimboca
Copy link
Collaborator

jimboca commented Feb 20, 2019

This caused the thread to die? Need to trap exception. Main process was still running but log showed nothing.

2019-02-19 05:25:43,782 [Controller] [DEBUG] heartbeat hb=0
2019-02-19 05:25:43,784 [Controller] [DEBUG] controller:updateThermostats:
2019-02-19 05:25:43,786 [Controller] [DEBUG] Tokens valid until: 2019-02-19T06:22:45
2019-02-19 05:25:51,980 [Controller] [ERROR] Exception in thread Controller:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 771, in _parseInput
    self.longPoll()
  File "./ecobee-poly.py", line 240, in longPoll
    self.updateThermostats()
  File "./ecobee-poly.py", line 253, in updateThermostats
    thermostats = self.getThermostats()
  File "./ecobee-poly.py", line 470, in getThermostats
    res = auth_conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.5/socket.py", line 576, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.5/ssl.py", line 937, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.5/ssl.py", line 799, in read
    return self._sslobj.read(len, buffer)
  File "/usr/lib/python3.5/ssl.py", line 583, in read
    v = self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
@jimboca jimboca changed the title Thread died, but Connected stayed True Trap: ConnectionResetError: [Errno 104] Connection reset by peer Feb 20, 2019
jimboca added a commit that referenced this issue Feb 23, 2019
@jimboca
Copy link
Collaborator Author

jimboca commented Feb 23, 2019

Should be fixed in 2.0.36

@jimboca jimboca closed this as completed Feb 23, 2019
jimboca added a commit that referenced this issue Feb 23, 2019
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