Skip to content

Incomplete response #7

@jbrepogmailcom

Description

@jbrepogmailcom

Hello, I looked at issue #3 , which is closed. I have same proble but with different cause. It worked before but I am getting it after I installed to other computer with python2.7

Error is:
{"result": "Incomplete response from plug7683150124a160290b8e [10.0.0.13].", "deviceid": "7683150124a160290b8e", "datetime": "2021-03-24T14:45:01Z"}

Tracelog:

>>> import pytuya
>>> d = pytuya.OutletDevice('7683150124a160290b8e','10.0.0.13','d0d9d02a150363ae')
>>> d.set_version(3.3)
>>> d.status()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jan/.local/lib/python2.7/site-packages/pytuya/__init__.py", line 279, in status
    data = self._send_receive(payload)
  File "/home/jan/.local/lib/python2.7/site-packages/pytuya/__init__.py", line 177, in _send_receive
    data = s.recv(1024)
socket.error: [Errno 104] Connection reset by peer
>>> 

I can ping 10.0.0.13, it responds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions