-
Notifications
You must be signed in to change notification settings - Fork 69
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
报错有问题 账号和密码都没有错 #3
Comments
这个可能是你本地设置问题?urllib3装指定版本了吗,不能用最新的,然后云服务器也不行 |
环境如下: 报错内容:
尝试登录: |
很多人都是账号和密码登录不上去 |
先去小米官网登录一下,再执行程序就好了。 |
File "/root/migpt/MIGPT/miaccount.py", line 74, in login
serviceToken = await self._securityTokenService(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/migpt/MIGPT/miaccount.py", line 114, in _securityTokenService
async with self.session.get(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 982, in _wrap_create_connection
raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host api2.mina.mi.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')]
Traceback (most recent call last):
File "/root/migpt/MIGPT/MIGPT.py", line 304, in
asyncio.run(miboy.run_forever())
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/root/migpt/MIGPT/MIGPT.py", line 199, in run_forever
await self.init_all_data(session)
File "/root/migpt/MIGPT/MIGPT.py", line 92, in init_all_data
await self._init_data_hardware()
File "/root/migpt/MIGPT/MIGPT.py", line 116, in _init_data_hardware
hardware_data = await self.mina_service.device_list()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/migpt/MIGPT/minaservice.py", line 27, in device_list
result = await self.mina_request("/admin/v2/device_list?master=" + str(master))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/migpt/MIGPT/minaservice.py", line 22, in mina_request
return await self.account.mi_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/migpt/MIGPT/miaccount.py", line 150, in mi_request
raise Exception(f"Error {url}: {resp}")
Exception: Error https://api2.mina.mi.com/admin/v2/device_list?master=0&requestId=app_ios_nuB7SxiGTI2KOsPmdYo4yhpAwQ8HjC: Login failed
root@aml:~/migpt/MIGPT#
The text was updated successfully, but these errors were encountered: