cookies怎么填?我浏览器上看到这么多条?
emmmua opened this issue · 10 comments
MIUITask Version
v1.7.2
Bug Found in Environment
Docker
Describe the Bug
cookies如何填?
MIUITask Log
09:38:29 - SUCCESS | login.login:92 - 小米账号登录成功
09:38:29 - ERROR | login.get_cookie:25 - 社区获取 Cookie 失败
Traceback (most recent call last):
File "/srv/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
yield
File "/srv/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 366, in handle_async_request
resp = await self._pool.handle_async_request(req)
│ │ │ └ <Request [b'GET']>
│ │ └ <function AsyncConnectionPool.handle_async_request at 0x7f3019a907c0>
│ └ <httpcore.AsyncConnectionPool object at 0x7f301885d310>
└ <httpx.AsyncHTTPTransport object at 0x7f301885c9b0>
File "/srv/.venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 215, in handle_async_request
raise UnsupportedProtocol(
└ <class 'httpcore.UnsupportedProtocol'>
httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/srv/miuitask.py", line 48, in <module>
asyncio.run(main())
│ │ └ <function main at 0x7f301c311440>
│ └ <function run at 0x7f301b945940>
└ <module 'asyncio' from '/usr/local/lib/python3.12/asyncio/__init__.py'>
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
│ │ └ <coroutine object main at 0x7f301920ab00>
│ └ <function Runner.run at 0x7f301b9e2de0>
└ <asyncio.runners.Runner object at 0x7f30194d7ad0>
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /srv/miuitask.py:27> cb=[_run_until_complete_cb() at /usr/local/lib/pytho...
│ │ └ <function BaseEventLoop.run_until_complete at 0x7f301b9e0a40>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0x7f30194d7ad0>
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 651, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0x7f301b9e09a0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 618, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0x7f301b9e27a0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1951, in _run_once
handle._run()
│ └ <function Handle._run at 0x7f301b92cd60>
└ <Handle <_asyncio.TaskStepMethWrapper object at 0x7f301889ec80>()>
File "/usr/local/lib/python3.12/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle <_asyncio.TaskStepMethWrapper object at 0x7f301889ec80>()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle <_asyncio.TaskStepMethWrapper object at 0x7f301889ec80>()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle <_asyncio.TaskStepMethWrapper object at 0x7f301889ec80>()>
File "/srv/miuitask.py", line 27, in main
if cookies := await login_obj.login():
│ └ <function Login.login at 0x7f3019220c20>
└ <utils.api.login.Login object at 0x7f30194bd010>
File "/srv/utils/api/login.py", line 93, in login
cookies = await get_cookie(api_data.location)
│ │ └ ''
│ └ LoginResultHandler(content={'notificationUrl': 'https://account.xiaomi.com/identity/authStart?sid=miui_vip&context=Pef2zk6anB...
└ <function get_cookie at 0x7f301b773a60>
> File "/srv/utils/api/login.py", line 21, in get_cookie
response = await get(url, follow_redirects=False)
│ └ ''
└ <function get at 0x7f3019ce9260>
File "/srv/utils/request.py", line 35, in get
return await client.get(url,
│ │ └ ''
│ └ <function AsyncClient.get at 0x7f3019aa7060>
└ <httpx.AsyncClient object at 0x7f3019230770>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1757, in get
return await self.request(
│ └ <function AsyncClient.request at 0x7f3019aa6c00>
└ <httpx.AsyncClient object at 0x7f3019230770>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
│ │ │ │ └ False
│ │ │ └ <httpx._client.UseClientDefault object at 0x7f3019c6f410>
│ │ └ <Request('GET', '/')>
│ └ <function AsyncClient.send at 0x7f3019aa6de0>
└ <httpx.AsyncClient object at 0x7f3019230770>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1617, in send
response = await self._send_handling_auth(
│ └ <function AsyncClient._send_handling_auth at 0x7f3019aa6e80>
└ <httpx.AsyncClient object at 0x7f3019230770>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
│ └ <function AsyncClient._send_handling_redirects at 0x7f3019aa6f20>
└ <httpx.AsyncClient object at 0x7f3019230770>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
│ │ └ <Request('GET', '/')>
│ └ <function AsyncClient._send_single_request at 0x7f3019aa6fc0>
└ <httpx.AsyncClient object at 0x7f3019230770>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
│ │ └ <Request('GET', '/')>
│ └ <function AsyncHTTPTransport.handle_async_request at 0x7f3019a93f60>
└ <httpx.AsyncHTTPTransport object at 0x7f301885c9b0>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 365, in handle_async_request
with map_httpcore_exceptions():
└ <function map_httpcore_exceptions at 0x7f3019867920>
File "/usr/local/lib/python3.12/contextlib.py", line 155, in __exit__
self.gen.throw(value)
│ │ │ └ UnsupportedProtocol("Request URL is missing an 'http://' or 'https://' protocol.")
│ │ └ <method 'throw' of 'generator' objects>
│ └ <generator object map_httpcore_exceptions at 0x7f3018891340>
└ <contextlib._GeneratorContextManager object at 0x7f301889e810>
File "/srv/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
raise mapped_exc(message) from exc
│ └ "Request URL is missing an 'http://' or 'https://' protocol."
└ <class 'httpx.UnsupportedProtocol'>
httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
09:38:29 - ERROR | request.notify_me:74 - 未配置推送或未正确配置推送
MIUITask Config
No response
Screenshots
[congfig.yaml]里面 cookies: cUserId: miui_vip_ph: miui_vip_serviceToken: miui_vip_slh: user_agent:
好像可以了
但是这里提示token问题,你那边是如何解决的?好兄弟
10:48:44 - INFO | login.login:84 - Cookie有效,跳过登录
10:48:44 - DEBUG | utils.get_token:221 - {"msg":"","code":0,"data":{"result":false,"id":"8432c71f8299434499cac97893e33c0c","url":"https://static-verify.sec.xiaomi.com/v2/html/check.html?t=1&k=3dc42a135a8d45118034d1ab68213073&e=Lp3fF%2BloTyWZCGYHcjXk3nYYPAqBOuKD4hgbe9j%2F%2BKLB5PjAF2CnspJGbcJq3nuz9wfd0eHJt8mdUKQ7tTvUncHQDv4AASGRDmyYD1ccyntSsPQkyzTetYHpYE4hYnLfJcQ7uMaNhCAP2kh7KabjgVDMdcLabs3oLfx42dbcExZ6X3KG%2BGiPUvlSy3pH2iybkPeQD%2B%2BTewfiitLUI09PseUFgpiUNkBiecSFbCs7ueKQlu%2Fgx4L%2FUR4vuQfyPNwyO6EbJp5LtPHevUNnwFU7e4ErL7Hg7ngzoWA%2BYikLCzUYP0h81lb6sE%2Bv%2BbDRhfKnP%2BA5nhfM%2Fj0H4dVeBju0cAJ9Ps9PVui0dpl3EX2Xay4%3D&locale=zh_cn&eventId=8432c71f8299434499cac97893e33c0c&c=8351ae0ef2e0b2afdbafc3c4a2d22e6e&l=ed5fc6d5e7b5bf27ecd439eef36d5bdd","token":""}}
10:48:44 - ERROR | utils.get_token:227 - 遇到人机验证码, 尝试调用解决方案
10:48:44 - DEBUG | utils.get_token_by_captcha:118 - {"msg":"","code":0,"data":{"result":false,"id":"8432c71f8299434499cac97893e33c0c"}}
10:48:44 - ERROR | utils.get_token_by_captcha:124 - 遇到人机验证码,无法获取TOKEN
10:48:44 - DEBUG | utils.get_token:221 - {"msg":"参数错误","code":400,"data":{"message":"invalid nonce","status":466}}
10:48:44 - ERROR | utils.get_token:234 - 遇到未知错误,无法获取TOKEN
10:48:44 - DEBUG | sign.check_daily_tasks:42 - {"time":0,"message":"success","entity":[{"head":{"img":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/community_grow_up_level_icon/Color_48_3.png?GalaxyAccessKeyId\u003d5151729087601\u0026Expires\u003d9223372036854775807\u0026Signature\u003dNaYUKYhaQeRM7qaJQhnK8nTXZQU\u003d","showType":1,"title":"3段 初级成员","jumpText":"","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/growth?skipLocal\u003dtrue","desc":"社区成长等级"},"cakeType":1},{"head":{"img":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/icons/badge/1/社区勋章_60s.png?GalaxyAccessKeyId\u003dAKU25VNGWI6E4RUEAW\u0026Expires\u003d9223372036854775807\u0026Signature\u003dUId7rM4TsrONiivzGigL4KJYPi0\u003d","showType":1,"title":"全新升级","jumpText":"","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/badge?skipLocal\u003dtrue","desc":"社区勋章"},"cakeType":1},{"head":{"title":"每日任务","jumpText":"查看成长值规则","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/growthRules"},"data":[{"secondTitle":"火爆","showType":1,"title":"抢先体验小米澎湃OS!","jumpText":"去参加","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/blindBox/signUp?skipLocal\u003dtrue\u0026activityKey\u003dHyper2023\u0026isOnline\u003d1","desc":"火热进行中"},{"showType":1,"title":"每日签到","jumpText":"","jumpUrl":"","desc":"签到奖励随机,以实际获得为准"},{"showType":0,"title":"浏览帖子超过10秒","jumpText":"已完成","jumpUrl":"mio://vipaccount.miui.com/main?tab\u003dmio\u0026sub_tab\u003drecommend","desc":"每次成长值+1,每日上限1分"}],"cakeType":2},{"head":{"title":"新手任务","jumpUrl":""},"data":[{"showType":0,"title":"首次完善个人资料","jumpText":"已完成","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/personalInfo","desc":"成长值+10,仅限首次"},{"showType":0,"title":"首次完成实名认证","jumpText":"已完成","jumpUrl":"https://certify.mipay.com/","desc":"成长值+10,仅限首次"}],"cakeType":2},{"head":{"title":"其他任务","jumpText":"更多任务","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/newshop/gold"},"data":[{"showType":1,"title":"参与拔萝卜获得奖励","jumpText":"去看看","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/arrive","desc":"以活动页面为准"}],"cakeType":2}],"status":200}
10:48:44 - INFO | miuitask.main:34 - 开始执行抢先体验小米澎湃OS!任务
10:48:44 - ERROR | miuitask.main:41 - 未找到抢先体验小米澎湃OS!任务
10:48:44 - INFO | miuitask.main:34 - 开始执行每日签到任务
10:48:44 - INFO | sign.sign:79 - 未获取到token, 跳过每日签到
10:48:44 - INFO | miuitask.main:43 - 浏览帖子超过10秒任务已完成
10:48:44 - INFO | miuitask.main:34 - 开始执行参与拔萝卜获得奖励任务
10:48:45 - DEBUG | sign.sign:84 - {"status":200,"code":200,"message":"ok","entity":{"header":{"userId":2429448799,"vipType":-1,"moneyCount":1},"popup":1,"message":"获得1金币!","awardCoinCount":1,"tip":"连续拔7天萝卜可获得额外金币"}}
10:48:45 - SUCCESS | sign.sign:91 - 参与拔萝卜获得奖励结果: ok
10:48:45 - ERROR | request.notify_me:74 - 未配置推送或未正确配置推送
ubuntu@VM-4-15-ubuntu:/docker/xiaomi/logs$
我也是token无法获取,来这里看看如何解决。
目前我是没让脚本签到。
社区不提供解决方案
不用填,填了账号和密码,cookie会自动生成
你怎么弄的
[congfig.yaml]里面 cookies: cUserId: miui_vip_ph: miui_vip_serviceToken: miui_vip_slh: user_agent:好像可以了 但是这里提示token问题,你那边是如何解决的?好兄弟
10:48:44 - INFO | login.login:84 - Cookie有效,跳过登录 10:48:44 - DEBUG | utils.get_token:221 - {"msg":"","code":0,"data":{"result":false,"id":"8432c71f8299434499cac97893e33c0c","url":"https://static-verify.sec.xiaomi.com/v2/html/check.html?t=1&k=3dc42a135a8d45118034d1ab68213073&e=Lp3fF%2BloTyWZCGYHcjXk3nYYPAqBOuKD4hgbe9j%2F%2BKLB5PjAF2CnspJGbcJq3nuz9wfd0eHJt8mdUKQ7tTvUncHQDv4AASGRDmyYD1ccyntSsPQkyzTetYHpYE4hYnLfJcQ7uMaNhCAP2kh7KabjgVDMdcLabs3oLfx42dbcExZ6X3KG%2BGiPUvlSy3pH2iybkPeQD%2B%2BTewfiitLUI09PseUFgpiUNkBiecSFbCs7ueKQlu%2Fgx4L%2FUR4vuQfyPNwyO6EbJp5LtPHevUNnwFU7e4ErL7Hg7ngzoWA%2BYikLCzUYP0h81lb6sE%2Bv%2BbDRhfKnP%2BA5nhfM%2Fj0H4dVeBju0cAJ9Ps9PVui0dpl3EX2Xay4%3D&locale=zh_cn&eventId=8432c71f8299434499cac97893e33c0c&c=8351ae0ef2e0b2afdbafc3c4a2d22e6e&l=ed5fc6d5e7b5bf27ecd439eef36d5bdd","token":""}} 10:48:44 - ERROR | utils.get_token:227 - 遇到人机验证码, 尝试调用解决方案 10:48:44 - DEBUG | utils.get_token_by_captcha:118 - {"msg":"","code":0,"data":{"result":false,"id":"8432c71f8299434499cac97893e33c0c"}} 10:48:44 - ERROR | utils.get_token_by_captcha:124 - 遇到人机验证码,无法获取TOKEN 10:48:44 - DEBUG | utils.get_token:221 - {"msg":"参数错误","code":400,"data":{"message":"invalid nonce","status":466}} 10:48:44 - ERROR | utils.get_token:234 - 遇到未知错误,无法获取TOKEN 10:48:44 - DEBUG | sign.check_daily_tasks:42 - {"time":0,"message":"success","entity":[{"head":{"img":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/community_grow_up_level_icon/Color_48_3.png?GalaxyAccessKeyId\u003d5151729087601\u0026Expires\u003d9223372036854775807\u0026Signature\u003dNaYUKYhaQeRM7qaJQhnK8nTXZQU\u003d","showType":1,"title":"3段 初级成员","jumpText":"","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/growth?skipLocal\u003dtrue","desc":"社区成长等级"},"cakeType":1},{"head":{"img":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/icons/badge/1/社区勋章_60s.png?GalaxyAccessKeyId\u003dAKU25VNGWI6E4RUEAW\u0026Expires\u003d9223372036854775807\u0026Signature\u003dUId7rM4TsrONiivzGigL4KJYPi0\u003d","showType":1,"title":"全新升级","jumpText":"","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/badge?skipLocal\u003dtrue","desc":"社区勋章"},"cakeType":1},{"head":{"title":"每日任务","jumpText":"查看成长值规则","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/growthRules"},"data":[{"secondTitle":"火爆","showType":1,"title":"抢先体验小米澎湃OS!","jumpText":"去参加","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/blindBox/signUp?skipLocal\u003dtrue\u0026activityKey\u003dHyper2023\u0026isOnline\u003d1","desc":"火热进行中"},{"showType":1,"title":"每日签到","jumpText":"","jumpUrl":"","desc":"签到奖励随机,以实际获得为准"},{"showType":0,"title":"浏览帖子超过10秒","jumpText":"已完成","jumpUrl":"mio://vipaccount.miui.com/main?tab\u003dmio\u0026sub_tab\u003drecommend","desc":"每次成长值+1,每日上限1分"}],"cakeType":2},{"head":{"title":"新手任务","jumpUrl":""},"data":[{"showType":0,"title":"首次完善个人资料","jumpText":"已完成","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/personalInfo","desc":"成长值+10,仅限首次"},{"showType":0,"title":"首次完成实名认证","jumpText":"已完成","jumpUrl":"https://certify.mipay.com/","desc":"成长值+10,仅限首次"}],"cakeType":2},{"head":{"title":"其他任务","jumpText":"更多任务","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/newshop/gold"},"data":[{"showType":1,"title":"参与拔萝卜获得奖励","jumpText":"去看看","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/arrive","desc":"以活动页面为准"}],"cakeType":2}],"status":200} 10:48:44 - INFO | miuitask.main:34 - 开始执行抢先体验小米澎湃OS!任务 10:48:44 - ERROR | miuitask.main:41 - 未找到抢先体验小米澎湃OS!任务 10:48:44 - INFO | miuitask.main:34 - 开始执行每日签到任务 10:48:44 - INFO | sign.sign:79 - 未获取到token, 跳过每日签到 10:48:44 - INFO | miuitask.main:43 - 浏览帖子超过10秒任务已完成 10:48:44 - INFO | miuitask.main:34 - 开始执行参与拔萝卜获得奖励任务 10:48:45 - DEBUG | sign.sign:84 - {"status":200,"code":200,"message":"ok","entity":{"header":{"userId":2429448799,"vipType":-1,"moneyCount":1},"popup":1,"message":"获得1金币!","awardCoinCount":1,"tip":"连续拔7天萝卜可获得额外金币"}} 10:48:45 - SUCCESS | sign.sign:91 - 参与拔萝卜获得奖励结果: ok 10:48:45 - ERROR | request.notify_me:74 - 未配置推送或未正确配置推送 ubuntu@VM-4-15-ubuntu:/docker/xiaomi/logs$
开始执行... 2023-12-02 14:54:40
14:54:42 - INFO | system_info.print_info:13 - MIUI-AUTO-TASK v1.7.2
14:54:42 - INFO | system_info.print_info:14 - ---------- 系统信息 -------------
14:54:42 - INFO | system_info.system_info:25 - 操作系统平台: Linux-3.10.0-1160.99.1.el7.x86_64-x86_64-with
14:54:42 - INFO | system_info.system_info:26 - 操作系统版本: #1 SMP Wed Sep 13 14:19:20 UTC 2023
14:54:42 - INFO | system_info.system_info:27 - 操作系统名称: Linux
14:54:42 - INFO | system_info.system_info:28 - 操作系统位元: ('64bit', '')
14:54:42 - INFO | system_info.system_info:29 - 操作系统类型: x86_64
14:54:42 - INFO | system_info.system_info:30 - 处理器信息:
14:54:42 - INFO | system_info.system_info:31 - Python 版本: 3.10.13 ('main', 'Oct 19 2023 06:08:04')
14:54:42 - INFO | system_info.print_info:16 - ---------- 项目信息 -------------
14:54:42 - INFO | system_info.print_info:17 - 这是一个免费且开源的项目,如果你是付费购买获得请务必退款
14:54:42 - INFO | system_info.print_info:18 - 项目地址:https://github.com/0-8-4/miui-auto-tasks
14:54:42 - INFO | system_info.print_info:19 - 欢迎 star,感谢所有项目贡献者,已经提交issues的人,帮助项目发展的人
14:54:42 - INFO | system_info.print_info:20 - ---------- 脚本日志 -------------
14:54:42 - INFO | login.login:84 - Cookie有效,跳过登录
Traceback (most recent call last):
File "/ql/data/scripts/0-8-4_miui-auto-tasks_master/miuitask.py", line 48, in
asyncio.run(main())
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/ql/data/scripts/0-8-4_miui-auto-tasks_master/miuitask.py", line 28, in main
token = await get_token(cookies["cUserId"])
KeyError: 'cUserId'
[congfig.yaml]里面 cookies: cUserId: miui_vip_ph: miui_vip_serviceToken: miui_vip_slh: user_agent:好像可以了 但是这里提示token问题,你那边是如何解决的?好兄弟
10:48:44 - INFO | login.login:84 - Cookie有效,跳过登录 10:48:44 - DEBUG | utils.get_token:221 - {"msg":"","code":0,"data":{"result":false,"id":"8432c71f8299434499cac97893e33c0c","url":"https://static-verify.sec.xiaomi.com/v2/html/check.html?t=1&k=3dc42a135a8d45118034d1ab68213073&e=Lp3fF%2BloTyWZCGYHcjXk3nYYPAqBOuKD4hgbe9j%2F%2BKLB5PjAF2CnspJGbcJq3nuz9wfd0eHJt8mdUKQ7tTvUncHQDv4AASGRDmyYD1ccyntSsPQkyzTetYHpYE4hYnLfJcQ7uMaNhCAP2kh7KabjgVDMdcLabs3oLfx42dbcExZ6X3KG%2BGiPUvlSy3pH2iybkPeQD%2B%2BTewfiitLUI09PseUFgpiUNkBiecSFbCs7ueKQlu%2Fgx4L%2FUR4vuQfyPNwyO6EbJp5LtPHevUNnwFU7e4ErL7Hg7ngzoWA%2BYikLCzUYP0h81lb6sE%2Bv%2BbDRhfKnP%2BA5nhfM%2Fj0H4dVeBju0cAJ9Ps9PVui0dpl3EX2Xay4%3D&locale=zh_cn&eventId=8432c71f8299434499cac97893e33c0c&c=8351ae0ef2e0b2afdbafc3c4a2d22e6e&l=ed5fc6d5e7b5bf27ecd439eef36d5bdd","token":""}} 10:48:44 - ERROR | utils.get_token:227 - 遇到人机验证码, 尝试调用解决方案 10:48:44 - DEBUG | utils.get_token_by_captcha:118 - {"msg":"","code":0,"data":{"result":false,"id":"8432c71f8299434499cac97893e33c0c"}} 10:48:44 - ERROR | utils.get_token_by_captcha:124 - 遇到人机验证码,无法获取TOKEN 10:48:44 - DEBUG | utils.get_token:221 - {"msg":"参数错误","code":400,"data":{"message":"invalid nonce","status":466}} 10:48:44 - ERROR | utils.get_token:234 - 遇到未知错误,无法获取TOKEN 10:48:44 - DEBUG | sign.check_daily_tasks:42 - {"time":0,"message":"success","entity":[{"head":{"img":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/community_grow_up_level_icon/Color_48_3.png?GalaxyAccessKeyId\u003d5151729087601\u0026Expires\u003d9223372036854775807\u0026Signature\u003dNaYUKYhaQeRM7qaJQhnK8nTXZQU\u003d","showType":1,"title":"3段 初级成员","jumpText":"","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/growth?skipLocal\u003dtrue","desc":"社区成长等级"},"cakeType":1},{"head":{"img":"https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/icons/badge/1/社区勋章_60s.png?GalaxyAccessKeyId\u003dAKU25VNGWI6E4RUEAW\u0026Expires\u003d9223372036854775807\u0026Signature\u003dUId7rM4TsrONiivzGigL4KJYPi0\u003d","showType":1,"title":"全新升级","jumpText":"","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/badge?skipLocal\u003dtrue","desc":"社区勋章"},"cakeType":1},{"head":{"title":"每日任务","jumpText":"查看成长值规则","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/growthRules"},"data":[{"secondTitle":"火爆","showType":1,"title":"抢先体验小米澎湃OS!","jumpText":"去参加","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/blindBox/signUp?skipLocal\u003dtrue\u0026activityKey\u003dHyper2023\u0026isOnline\u003d1","desc":"火热进行中"},{"showType":1,"title":"每日签到","jumpText":"","jumpUrl":"","desc":"签到奖励随机,以实际获得为准"},{"showType":0,"title":"浏览帖子超过10秒","jumpText":"已完成","jumpUrl":"mio://vipaccount.miui.com/main?tab\u003dmio\u0026sub_tab\u003drecommend","desc":"每次成长值+1,每日上限1分"}],"cakeType":2},{"head":{"title":"新手任务","jumpUrl":""},"data":[{"showType":0,"title":"首次完善个人资料","jumpText":"已完成","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/personalInfo","desc":"成长值+10,仅限首次"},{"showType":0,"title":"首次完成实名认证","jumpText":"已完成","jumpUrl":"https://certify.mipay.com/","desc":"成长值+10,仅限首次"}],"cakeType":2},{"head":{"title":"其他任务","jumpText":"更多任务","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/newshop/gold"},"data":[{"showType":1,"title":"参与拔萝卜获得奖励","jumpText":"去看看","jumpUrl":"https://web.vip.miui.com/page/info/mio/mio/arrive","desc":"以活动页面为准"}],"cakeType":2}],"status":200} 10:48:44 - INFO | miuitask.main:34 - 开始执行抢先体验小米澎湃OS!任务 10:48:44 - ERROR | miuitask.main:41 - 未找到抢先体验小米澎湃OS!任务 10:48:44 - INFO | miuitask.main:34 - 开始执行每日签到任务 10:48:44 - INFO | sign.sign:79 - 未获取到token, 跳过每日签到 10:48:44 - INFO | miuitask.main:43 - 浏览帖子超过10秒任务已完成 10:48:44 - INFO | miuitask.main:34 - 开始执行参与拔萝卜获得奖励任务 10:48:45 - DEBUG | sign.sign:84 - {"status":200,"code":200,"message":"ok","entity":{"header":{"userId":2429448799,"vipType":-1,"moneyCount":1},"popup":1,"message":"获得1金币!","awardCoinCount":1,"tip":"连续拔7天萝卜可获得额外金币"}} 10:48:45 - SUCCESS | sign.sign:91 - 参与拔萝卜获得奖励结果: ok 10:48:45 - ERROR | request.notify_me:74 - 未配置推送或未正确配置推送 ubuntu@VM-4-15-ubuntu:/docker/xiaomi/logs$
我这个报错怎么解决
不用填,填了账号和密码,cookie会自动生成
报错
不用填,填了账号和密码,cookie会自动生成
开始执行... 2023-12-02 14:54:40
14:54:42 - INFO | system_info.print_info:13 - MIUI-AUTO-TASK v1.7.2
14:54:42 - INFO | system_info.print_info:14 - ---------- 系统信息 -------------
14:54:42 - INFO | system_info.system_info:25 - 操作系统平台: Linux-3.10.0-1160.99.1.el7.x86_64-x86_64-with
14:54:42 - INFO | system_info.system_info:26 - 操作系统版本: #1 SMP Wed Sep 13 14:19:20 UTC 2023
14:54:42 - INFO | system_info.system_info:27 - 操作系统名称: Linux
14:54:42 - INFO | system_info.system_info:28 - 操作系统位元: ('64bit', '')
14:54:42 - INFO | system_info.system_info:29 - 操作系统类型: x86_64
14:54:42 - INFO | system_info.system_info:30 - 处理器信息:
14:54:42 - INFO | system_info.system_info:31 - Python 版本: 3.10.13 ('main', 'Oct 19 2023 06:08:04')
14:54:42 - INFO | system_info.print_info:16 - ---------- 项目信息 -------------
14:54:42 - INFO | system_info.print_info:17 - 这是一个免费且开源的项目,如果你是付费购买获得请务必退款
14:54:42 - INFO | system_info.print_info:18 - 项目地址:https://github.com/0-8-4/miui-auto-tasks
14:54:42 - INFO | system_info.print_info:19 - 欢迎 star,感谢所有项目贡献者,已经提交issues的人,帮助项目发展的人
14:54:42 - INFO | system_info.print_info:20 - ---------- 脚本日志 -------------
14:54:42 - INFO | login.login:84 - Cookie有效,跳过登录
Traceback (most recent call last):
File "/ql/data/scripts/0-8-4_miui-auto-tasks_master/miuitask.py", line 48, in
asyncio.run(main())
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/ql/data/scripts/0-8-4_miui-auto-tasks_master/miuitask.py", line 28, in main
token = await get_token(cookies["cUserId"])
KeyError: 'cUserId'