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.17k stars 327 forks source link

Token extractor generates list of error #60

Closed drorya1 closed 2 years ago

drorya1 commented 2 years ago

While my "Xiaomi Robot " did not show anymore in HA I assumed it related to lost token . When trying to run to token extractor I get the following errors

Username (email or user ID): dxxxxx@gmail.com Password: xxxxxxx Server (one of: cn, de, us, ru, tw, sg, in, i2) Leave empty to check all available:

Logging in... Traceback (most recent call last): File "site-packages\urllib3\connectionpool.py", line 706, in urlopen File "site-packages\urllib3\connectionpool.py", line 382, in _make_request File "site-packages\urllib3\connectionpool.py", line 1010, in _validateconn File "site-packages\urllib3\connection.py", line 426, in connect File "site-packages\urllib3\util\ssl.py", line 450, in ssl_wrapsocket File "site-packages\urllib3\util\ssl.py", line 493, in _ssl_wrap_socket_impl File "ssl.py", line 423, in wrap_socket File "ssl.py", line 870, in _create File "ssl.py", line 1139, in do_handshake ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "site-packages\requests\adapters.py", line 449, in send File "site-packages\urllib3\connectionpool.py", line 756, in urlopen File "site-packages\urllib3\util\retry.py", line 574, in increment urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='account.xiaomi.com', port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "token_extractor.py", line 248, in File "token_extractor.py", line 98, in login File "token_extractor.py", line 43, in login_step_1 File "site-packages\requests\sessions.py", line 555, in get File "site-packages\requests\sessions.py", line 542, in request File "site-packages\requests\sessions.py", line 655, in send File "site-packages\requests\adapters.py", line 514, in send requests.exceptions.SSLError: HTTPSConnectionPool(host='account.xiaomi.com', port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)'))) [30284] Failed to execute script token_extractor

PiotrMachowski commented 2 years ago

Network traffic was probably blocked, see #18

drorya1 commented 2 years ago

You are correct This is indeed local issue with my PC Checking again Thx !

On Wed, Mar 9, 2022 at 3:21 PM Piotr Machowski @.***> wrote:

Network traffic was probably blocked, see #18 https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/issues/18

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/issues/60#issuecomment-1062914776, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBF5G57UHFS7SCSD5QT2GTU7CQUNANCNFSM5QJQEK6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.*** com>

razorface1978 commented 2 years ago
Screen Shot 2022-04-30 at 8 39 51 AM

not sure what im doing wrong but I get this every time I'm on a pi 3b+

PiotrMachowski commented 2 years ago

Have you tried docker version?

razorface1978 commented 2 years ago

I have a Mac m1 and docker sucks on it I’ve tried but thank you for responding

On Apr 30, 2022, at 3:19 PM, Piotr Machowski @.***> wrote:

 Have you tried docker version?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

PiotrMachowski commented 2 years ago

Buuut you can use docker script in HA terminal

razorface1978 commented 2 years ago

Oh ok I’ll try it let you know what I get Thank you

On Apr 30, 2022, at 5:15 PM, Piotr Machowski @.***> wrote:

 Buuut you can use docker script in HA terminal

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

razorface1978 commented 2 years ago

Ok this is what I get running the docker code

On Apr 30, 2022, at 5:35 PM, Tim Cash @.***> wrote:

Oh ok I’ll try it let you know what I get Thank you

On Apr 30, 2022, at 5:15 PM, Piotr Machowski @.***> wrote:



Buuut you can use docker script in HA terminal

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/issues/60#issuecomment-1114055232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7PKVYTHSLTSERG4635E6DVHWPFJANCNFSM5QJQEK6A. You are receiving this because you commented.