You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
检测到已安装正确的 twocaptcha 包,脚本继续运行
10:10:14 - INFO | system_info.print_info:13 - MIUI-AUTO-TASK v1.7.5
10:10:14 - INFO | system_info.print_info:14 - ---------- 系统信息 -------------
10:10:14 - INFO | system_info.system_info:25 - 操作系统平台: Linux-5.10.201-aarch64-with
10:10:14 - INFO | system_info.system_info:26 - 操作系统版本: #0 SMP Fri Mar 29 09:06:57 2024
10:10:14 - INFO | system_info.system_info:27 - 操作系统名称: Linux
10:10:14 - INFO | system_info.system_info:28 - 操作系统位元: ('64bit', '')
10:10:14 - INFO | system_info.system_info:29 - 操作系统类型: aarch64
10:10:14 - INFO | system_info.system_info:30 - 处理器信息:
10:10:14 - INFO | system_info.system_info:31 - Python 版本: 3.11.11 ('main', 'Dec 10 2024 01:04:40')
10:10:14 - INFO | system_info.print_info:16 - ---------- 项目信息 -------------
10:10:14 - INFO | system_info.print_info:17 - 这是一个免费且开源的项目,如果你是付费购买获得请务必退款
10:10:14 - INFO | system_info.print_info:18 - 项目地址:https://github.com/0-8-4/miui-auto-tasks
10:10:14 - INFO | system_info.print_info:19 - 欢迎 star,感谢所有项目贡献者,已经提交issues的人,帮助项目发展的人
10:10:14 - INFO | system_info.print_info:20 - ---------- 脚本日志 -------------
10:10:15 - ERROR | login.get_cookies_by_passtk:163 - 从passToken获取 Cookie 失败
Traceback (most recent call last):
File "/ql/data/scripts/xiaomi/miuitask.py", line 64, in
asyncio.run(main())
│ │ └ <function main at 0xffffa77409a0>
│ └ <function run at 0xffffa5fa5260>
└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
│ │ └ <coroutine object main at 0xffffa5fe5d20>
│ └ <function Runner.run at 0xffffa5fda340>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /ql/data/scripts/xiaomi/miuitask.py:30> cb=[_run_until_complete_cb() at /...
│ │ └ <function BaseEventLoop.run_until_complete at 0xffffa5fcbf60>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0xffffa5fcbec0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0xffffa5fd9d00>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
handle._run()
│ └ <function Handle._run at 0xffffa5f82b60>
└ <Handle Task.task_wakeup()>
File "/usr/local/lib/python3.11/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
File "/ql/data/scripts/xiaomi/miuitask.py", line 30, in main
if cookies := await login_obj.login():
│ └ <function Login.login at 0xffffa3783ba0>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/api/login.py", line 66, in login
cookies := await self.get_cookies_by_passtk(
│ └ <function Login.get_cookies_by_passtk at 0xffffa37c5800>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/api/login.py", line 157, in get_cookies_by_passtk
response = await get(url, cookies=cookies, headers=headers)
│ │ │ └ {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange...
│ │ └ {'userId': '2257703710', 'passToken': 'V1:DXmurwq2/R1BHTELu6obCRYmZof9JQocLZNAnDK3MoE4WWRvZMLn9Nnx2tr+HmYiOuDdc3meAfRE9IDWcrc...
│ └ None
└ <function get at 0xffffa50fe840>
File "/ql/data/scripts/xiaomi/utils/request.py", line 35, in get
return await client.get(url,
│ │ └ None
│ └ <function AsyncClient.get at 0xffffa4dfd800>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1539, in get
return await self.request(
│ └ <function AsyncClient.request at 0xffffa4dfd4e0>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1350, in request
request = self.build_request(
│ └ <function BaseClient.build_request at 0xffffa4e07ce0>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 305, in build_request
url = self._merge_url(url)
│ │ └ None
│ └ <function BaseClient._merge_url at 0xffffa4e07d80>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 326, in _merge_url
merge_url = URL(url)
│ └ None
└ <class 'httpx.URL'>
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 134, in init
raise TypeError(
File "/ql/data/scripts/xiaomi/miuitask.py", line 64, in
asyncio.run(main())
│ │ └ <function main at 0xffffa77409a0>
│ └ <function run at 0xffffa5fa5260>
└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
│ │ └ <coroutine object main at 0xffffa5fe5d20>
│ └ <function Runner.run at 0xffffa5fda340>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /ql/data/scripts/xiaomi/miuitask.py:30> cb=[_run_until_complete_cb() at /...
│ │ └ <function BaseEventLoop.run_until_complete at 0xffffa5fcbf60>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0xffffa5fcbec0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0xffffa5fd9d00>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
handle._run()
│ └ <function Handle._run at 0xffffa5f82b60>
└ <Handle Task.task_wakeup()>
File "/usr/local/lib/python3.11/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
File "/ql/data/scripts/xiaomi/miuitask.py", line 30, in main
if cookies := await login_obj.login():
│ └ <function Login.login at 0xffffa3783ba0>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/api/login.py", line 221, in check_login
cookies = await self.get_cookies_by_passtk(
│ └ <function Login.get_cookies_by_passtk at 0xffffa37c5800>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/api/login.py", line 157, in get_cookies_by_passtk
response = await get(url, cookies=cookies, headers=headers)
│ │ │ └ {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange...
│ │ └ {'userId': '2257703710', 'passToken': 'V1:DXmurwq2/R1BHTELu6obCRYmZof9JQocLZNAnDK3MoE4WWRvZMLn9Nnx2tr+HmYi8mNb0+d19awOwEgModh...
│ └ None
└ <function get at 0xffffa50fe840>
File "/ql/data/scripts/xiaomi/utils/request.py", line 35, in get
return await client.get(url,
│ │ └ None
│ └ <function AsyncClient.get at 0xffffa4dfd800>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1539, in get
return await self.request(
│ └ <function AsyncClient.request at 0xffffa4dfd4e0>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1350, in request
request = self.build_request(
│ └ <function BaseClient.build_request at 0xffffa4e07ce0>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 305, in build_request
url = self._merge_url(url)
│ │ └ None
│ └ <function BaseClient._merge_url at 0xffffa4e07d80>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 326, in _merge_url
merge_url = URL(url)
│ └ None
└ <class 'httpx.URL'>
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 134, in init
raise TypeError(
File "/ql/data/scripts/xiaomi/utils/data_model.py", line 166, in init
super().init(**kwargs)
└ None
TypeError: pydantic.main.BaseModel.init() argument after ** must be a mapping, not NoneType
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ql/data/scripts/xiaomi/miuitask.py", line 64, in
asyncio.run(main())
│ │ └ <function main at 0xffffa77409a0>
│ └ <function run at 0xffffa5fa5260>
└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
│ │ └ <coroutine object main at 0xffffa5fe5d20>
│ └ <function Runner.run at 0xffffa5fda340>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /ql/data/scripts/xiaomi/miuitask.py:56> cb=[_run_until_complete_cb() at /...
│ │ └ <function BaseEventLoop.run_until_complete at 0xffffa5fcbf60>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0xffffa5fcbec0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0xffffa5fd9d00>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
handle._run()
│ └ <function Handle._run at 0xffffa5f82b60>
└ <Handle Task.task_wakeup()>
File "/usr/local/lib/python3.11/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
File "/ql/data/scripts/xiaomi/miuitask.py", line 56, in main
user_info = await sign_obj.user_info()
│ └ <function BaseSign.user_info at 0xffffa37c5080>
└ <utils.api.sign.BaseSign object at 0xffffa44f5dd0>
File "/ql/data/scripts/xiaomi/utils/api/sign.py", line 164, in user_info
for attempt in Retrying(stop=stop_after_attempt(3)):
│ │ └ <class 'tenacity.stop.stop_after_attempt'>
│ └ <class 'tenacity.Retrying'>
└ <tenacity.AttemptManager object at 0xffffa37c9850>
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 347, in iter
do = self.iter(retry_state=retry_state)
│ │ └ <RetryCallState 281473408580560: attempt #3; slept for 0.0; last result: failed (TypeError pydantic.main.BaseModel.init()...
│ └ <function BaseRetrying.iter at 0xffffa5da5d00>
└ <Retrying object at 0xffffa3375990 (stop=<tenacity.stop.stop_after_attempt object at 0xffffa37bf990>, wait=<tenacity.wait.wai...
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 326, in iter
raise retry_exc from fut.exception()
│ │ └ <function Future.exception at 0xffffa6269800>
│ └ <Future at 0xffffa2883a90 state=finished raised TypeError>
└ RetryError(<Future at 0xffffa2883a90 state=finished raised TypeError>)
tenacity.RetryError: RetryError[<Future at 0xffffa2883a90 state=finished raised TypeError>]
10:10:34 - INFO | miuitask.main:57 - 未知 成长值: 0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
检测到已安装正确的 twocaptcha 包,脚本继续运行
10:10:14 - INFO | system_info.print_info:13 - MIUI-AUTO-TASK v1.7.5
10:10:14 - INFO | system_info.print_info:14 - ---------- 系统信息 -------------
10:10:14 - INFO | system_info.system_info:25 - 操作系统平台: Linux-5.10.201-aarch64-with
10:10:14 - INFO | system_info.system_info:26 - 操作系统版本: #0 SMP Fri Mar 29 09:06:57 2024
10:10:14 - INFO | system_info.system_info:27 - 操作系统名称: Linux
10:10:14 - INFO | system_info.system_info:28 - 操作系统位元: ('64bit', '')
10:10:14 - INFO | system_info.system_info:29 - 操作系统类型: aarch64
10:10:14 - INFO | system_info.system_info:30 - 处理器信息:
10:10:14 - INFO | system_info.system_info:31 - Python 版本: 3.11.11 ('main', 'Dec 10 2024 01:04:40')
10:10:14 - INFO | system_info.print_info:16 - ---------- 项目信息 -------------
10:10:14 - INFO | system_info.print_info:17 - 这是一个免费且开源的项目,如果你是付费购买获得请务必退款
10:10:14 - INFO | system_info.print_info:18 - 项目地址:https://github.com/0-8-4/miui-auto-tasks
10:10:14 - INFO | system_info.print_info:19 - 欢迎 star,感谢所有项目贡献者,已经提交issues的人,帮助项目发展的人
10:10:14 - INFO | system_info.print_info:20 - ---------- 脚本日志 -------------
10:10:15 - ERROR | login.get_cookies_by_passtk:163 - 从passToken获取 Cookie 失败
Traceback (most recent call last):
File "/ql/data/scripts/xiaomi/miuitask.py", line 64, in
asyncio.run(main())
│ │ └ <function main at 0xffffa77409a0>
│ └ <function run at 0xffffa5fa5260>
└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
│ │ └ <coroutine object main at 0xffffa5fe5d20>
│ └ <function Runner.run at 0xffffa5fda340>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /ql/data/scripts/xiaomi/miuitask.py:30> cb=[_run_until_complete_cb() at /...
│ │ └ <function BaseEventLoop.run_until_complete at 0xffffa5fcbf60>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0xffffa5fcbec0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0xffffa5fd9d00>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
handle._run()
│ └ <function Handle._run at 0xffffa5f82b60>
└ <Handle Task.task_wakeup()>
File "/usr/local/lib/python3.11/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
File "/ql/data/scripts/xiaomi/miuitask.py", line 30, in main
if cookies := await login_obj.login():
│ └ <function Login.login at 0xffffa3783ba0>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/api/login.py", line 66, in login
cookies := await self.get_cookies_by_passtk(
│ └ <function Login.get_cookies_by_passtk at 0xffffa37c5800>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/request.py", line 35, in get
return await client.get(url,
│ │ └ None
│ └ <function AsyncClient.get at 0xffffa4dfd800>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1539, in get
return await self.request(
│ └ <function AsyncClient.request at 0xffffa4dfd4e0>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1350, in request
request = self.build_request(
│ └ <function BaseClient.build_request at 0xffffa4e07ce0>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 305, in build_request
url = self._merge_url(url)
│ │ └ None
│ └ <function BaseClient._merge_url at 0xffffa4e07d80>
└ <httpx.AsyncClient object at 0xffffa6a1c250>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 326, in _merge_url
merge_url = URL(url)
│ └ None
└ <class 'httpx.URL'>
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 134, in init
raise TypeError(
TypeError: Invalid type for url. Expected str or httpx.URL, got <class 'NoneType'>: None
10:10:16 - ERROR | login.login:98 - 小米账号登录失败:用户名或密码不正确, 请扫码登录
10:10:16 - INFO | login.qr_login:191 - 浏览器访问: https://account.xiaomi.com/pass/qr/login?ticket=lp_30059Caf13a7f1-4911-40f1-ae31-d004b4e0c3c3&dc=ak&sid=passport&_qrsize=240&_hasLogo=false&ts=1736388616391
获取扫描下方二维码登录
10:10:32 - ERROR | login.get_cookies_by_passtk:163 - 从passToken获取 Cookie 失败
Traceback (most recent call last):
File "/ql/data/scripts/xiaomi/miuitask.py", line 64, in
asyncio.run(main())
│ │ └ <function main at 0xffffa77409a0>
│ └ <function run at 0xffffa5fa5260>
└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
│ │ └ <coroutine object main at 0xffffa5fe5d20>
│ └ <function Runner.run at 0xffffa5fda340>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /ql/data/scripts/xiaomi/miuitask.py:30> cb=[_run_until_complete_cb() at /...
│ │ └ <function BaseEventLoop.run_until_complete at 0xffffa5fcbf60>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0xffffa5fcbec0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0xffffa5fd9d00>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
handle._run()
│ └ <function Handle._run at 0xffffa5f82b60>
└ <Handle Task.task_wakeup()>
File "/usr/local/lib/python3.11/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
File "/ql/data/scripts/xiaomi/miuitask.py", line 30, in main
if cookies := await login_obj.login():
│ └ <function Login.login at 0xffffa3783ba0>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/api/login.py", line 100, in login
userid, cookies = await self.check_login(check_url)
│ │ └ 'https://ak.lp.account.xiaomi.com/lp/s?k=lp_30059Caf13a7f1-4911-40f1-ae31-d004b4e0c3c3'
│ └ <function Login.check_login at 0xffffa37c5940>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/api/login.py", line 221, in check_login
cookies = await self.get_cookies_by_passtk(
│ └ <function Login.get_cookies_by_passtk at 0xffffa37c5800>
└ <utils.api.login.Login object at 0xffffa37c8a90>
File "/ql/data/scripts/xiaomi/utils/request.py", line 35, in get
return await client.get(url,
│ │ └ None
│ └ <function AsyncClient.get at 0xffffa4dfd800>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1539, in get
return await self.request(
│ └ <function AsyncClient.request at 0xffffa4dfd4e0>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1350, in request
request = self.build_request(
│ └ <function BaseClient.build_request at 0xffffa4e07ce0>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 305, in build_request
url = self._merge_url(url)
│ │ └ None
│ └ <function BaseClient._merge_url at 0xffffa4e07d80>
└ <httpx.AsyncClient object at 0xffffa37d0350>
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 326, in _merge_url
merge_url = URL(url)
│ └ None
└ <class 'httpx.URL'>
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 134, in init
raise TypeError(
TypeError: Invalid type for url. Expected str or httpx.URL, got <class 'NoneType'>: None
10:10:33 - INFO | login.checkin_info:263 - 异常
10:10:33 - ERROR | sign.check_daily_tasks:100 - 获取每日任务状态失败:
10:10:34 - ERROR | sign.user_info:189 - 用户信息 - 服务器没有正确返回 {"time":0,"message":"success","entity":{"userInfo":{"upgrade":false,"totalBadgeNum":0,"identifyType":0,"userId":"-1","vipInfo":{"giveLikeNum":0,"announceCnt":0,"boardCnt":0,"elitePostNum":0,"growPointInfo":{"icon":"https://ts.market.mi-img.com/download/MiVip/0641029b3ecc84822a5fa776e78878cdc651a220e/互动分.png","name":"成长值","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/growth","points":0},"followerCnt":0,"expressNum":0,"followeeCnt":0},"identified":false,"createTime":0,"miNikeName":"","activityIcon":{"iconList":[{"darkImg":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/icons/badge/badge_1_12.png?GalaxyAccessKeyId\u003d5151729087601\u0026Expires\u003d9223372036854775807\u0026Signature\u003dZXTK+H4g+s+41r9ptwfB1YJimJg\u003d","img":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/icons/badge/badge_1_12.png?GalaxyAccessKeyId\u003d5151729087601\u0026Expires\u003d9223372036854775807\u0026Signature\u003dZXTK+H4g+s+41r9ptwfB1YJimJg\u003d","jumpUrl":"https://preview.api.vip.miui.com/page/info/mio/mio/badge?userId\u003d-1"}]}},"myTools":[],"bannerEntrance":[{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/f4cca0d070fd34414c34bd292865b49f-1733127111163_个人中心%20banner.png","name":"2025新年活动感恩季","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/blindBox/signUp?skipLocal\u003dtrue\u0026activityKey\u003dNewYear2025\u0026isOnline\u003d1"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/a30147b1250c99220e48c000fc6b46c7-1677652973247_社区成长体系banner.jpg","name":"成长值历史回顾","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/historyRecap"}],"featureEntrance":[{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/e003f1581728f3ec962b568b9a8c0781-1680589719150_全部圈子.svg","name":"我的圈子","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/boardLive?showTitle\u003d1\u0026actionbarTitle\u003d%E5%85%A8%E9%83%A8%E5%9C%88%E5%AD%90"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/61d00c9174dbd8fe430b284beec82dac-1680589736007_我的收藏.svg","name":"我的收藏","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/collect"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/fdcac6a39a2aee241289aa0c267fa4bd-1680589712102_内测.svg","name":"我的内测","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/internalTest?type\u003d2"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/6c086f03ac014487fd0f8070b67929d0-1680589726782_我的活动.svg","name":"我的活动","jumpUrl":"https://vipaccount.miui.com/event"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/a88a8d6101353c512da4cec8f8ac4b1b-1680589704401_共建团.svg","name":"共建团","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/applicationList"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/9f52238f9a2de6cf5819a2a059547614-1680589678160_草稿箱.svg","name":"草稿箱","jumpUrl":"mio://vipaccount.miui.com/draftbox"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/458a0f37a08d77b422b5a013b6f5fce3-1680589684954_更多.svg","name":"更多频道","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/allplate"}],"vipEntrance":[{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/4c4aafff4da38166550e370f7c462124-1653617941862_勋章.png","name":"我的勋章","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/badge","desc":"全新升级"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/88c7925edb324ac6e843e74c77d859cb-1653617930051_社区周边.png","name":"金币商城","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/newshop?showTitle\u003d0","desc":"限量发售"},{"icon":"https://cdn.cnbj1.fds.api.mi-img.com/planet/8368c8b68db39e016c9f0f2774848e23-1653617846374_签到.png","name":"每日签到","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/checkIn","desc":"签到得奖励"}],"otherTools":[{"icon":"https://cnbj1.fds.api.xiaomi.com/planet/f1a34637dd884b131956754059a15889-1637062287960_问题反馈_dark.svg","name":"反馈中心","jumpUrl":"mio://vipaccount.miui.com/feedbackcenter"},{"icon":"https://cnbj1.fds.api.xiaomi.com/planet/f3c8a8d0e0d8bc92efd05ff5bd3deb68-1637060937576_产品建议_dark.svg","name":"建议中心","jumpUrl":"mio://vipaccount.miui.com/advicecenter"},{"icon":"https://cnbj1.fds.api.xiaomi.com/planet/210c9cd701428c935ea56a6ae0a100b4-1637117000734_举报记录_dark.svg","name":"举报记录","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/reportRecord"},{"icon":"https://cnbj1.fds.api.xiaomi.com/planet/f18a372ac3073bb4ceb982a2686e5c98-1637062172189_收货地址_dark.svg","name":"社区公约","jumpUrl":"https://web-alpha.vip.miui.com/page/info/mio/mio/detail?postId\u003d18118631"}]},"status":200}
Traceback (most recent call last):
File "/ql/data/scripts/xiaomi/utils/api/sign.py", line 183, in user_info
return UserInfoResult.model_validate(api_data.data)
│ │ │ └ {'userInfo': {'upgrade': False, 'totalBadgeNum': 0, 'identifyType': 0, 'userId': '-1', 'vipInfo': {'giveLikeNum': 0, 'announc...
│ │ └ ApiResultHandler(content={'time': 0, 'message': 'success', 'entity': {'userInfo': {'upgrade': False, 'totalBadgeNum': 0, 'ide...
│ └ <classmethod(<function BaseModel.model_validate at 0xffffa55d2f20>)>
└ <class 'utils.data_model.UserInfoResult'>
File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 503, in model_validate
return cls.pydantic_validator.validate_python(
│ │ └ <method 'validate_python' of 'pydantic_core._pydantic_core.SchemaValidator' objects>
│ └ SchemaValidator(title="UserInfoResult", validator=Model(
│ ModelValidator {
│ revalidate: Never,
│ validator: M...
└ <class 'utils.data_model.UserInfoResult'>
File "/ql/data/scripts/xiaomi/utils/data_model.py", line 166, in init
super().init(**kwargs)
└ None
TypeError: pydantic.main.BaseModel.init() argument after ** must be a mapping, not NoneType
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ql/data/scripts/xiaomi/miuitask.py", line 64, in
asyncio.run(main())
│ │ └ <function main at 0xffffa77409a0>
│ └ <function run at 0xffffa5fa5260>
└ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
│ │ └ <coroutine object main at 0xffffa5fe5d20>
│ └ <function Runner.run at 0xffffa5fda340>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /ql/data/scripts/xiaomi/miuitask.py:56> cb=[_run_until_complete_cb() at /...
│ │ └ <function BaseEventLoop.run_until_complete at 0xffffa5fcbf60>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0xffffa5fe3e90>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0xffffa5fcbec0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0xffffa5fd9d00>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
handle._run()
│ └ <function Handle._run at 0xffffa5f82b60>
└ <Handle Task.task_wakeup()>
File "/usr/local/lib/python3.11/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
File "/ql/data/scripts/xiaomi/miuitask.py", line 56, in main
user_info = await sign_obj.user_info()
│ └ <function BaseSign.user_info at 0xffffa37c5080>
└ <utils.api.sign.BaseSign object at 0xffffa44f5dd0>
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 347, in iter
do = self.iter(retry_state=retry_state)
│ │ └ <RetryCallState 281473408580560: attempt #3; slept for 0.0; last result: failed (TypeError pydantic.main.BaseModel.init()...
│ └ <function BaseRetrying.iter at 0xffffa5da5d00>
└ <Retrying object at 0xffffa3375990 (stop=<tenacity.stop.stop_after_attempt object at 0xffffa37bf990>, wait=<tenacity.wait.wai...
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 326, in iter
raise retry_exc from fut.exception()
│ │ └ <function Future.exception at 0xffffa6269800>
│ └ <Future at 0xffffa2883a90 state=finished raised TypeError>
└ RetryError(<Future at 0xffffa2883a90 state=finished raised TypeError>)
tenacity.RetryError: RetryError[<Future at 0xffffa2883a90 state=finished raised TypeError>]
10:10:34 - INFO | miuitask.main:57 - 未知 成长值: 0
Beta Was this translation helpful? Give feedback.
All reactions