PiotrMachowski / Xiaomi-cloud-tokens-extractor

This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.
MIT License
3.23k stars 333 forks source link

Logged in, but error afterward #34

Closed hudarsono closed 3 years ago

hudarsono commented 3 years ago

Here is the log :

Logging in...
Logged in.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 485, in wrap_socket
    cnx.do_handshake()
  File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1915, in do_handshake
    self._raise_ssl_error(self._ssl, result)
  File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1639, in _raise_ssl_error
    raise SysCallError(errno, errorcode.get(errno))
OpenSSL.SSL.SysCallError: (104, 'ECONNRESET')

Any idea?

PiotrMachowski commented 3 years ago

It can be because of traffic being blocked by: DNS (Cloudflare), PiHole/AdGuard, firewall, etc. Can you check if it applies to your case?

igenkin commented 3 years ago

I had the same when I tried to use all servers ('blank' for the server). Try to use only one server at a time. It worked for me.

hudarsono commented 3 years ago

It worked when I use the docker version.