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

Incomplete response #7

Open
jbrepogmailcom opened this issue Mar 24, 2021 · 0 comments
Open

Incomplete response #7

jbrepogmailcom opened this issue Mar 24, 2021 · 0 comments

Comments

@jbrepogmailcom
Copy link

jbrepogmailcom commented Mar 24, 2021

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

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