Skip to content
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

登录时报错:需要行为验证码验证 #74

Open
ShoulderDorry opened this issue Feb 20, 2025 · 1 comment
Open

登录时报错:需要行为验证码验证 #74

ShoulderDorry opened this issue Feb 20, 2025 · 1 comment

Comments

@ShoulderDorry
Copy link

Traceback (most recent call last):
File "E:\senbei310\lib\site-packages\starlette\routing.py", line 734, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 199, in aenter
return await anext(self.gen)
File "E:\senbei310\lib\site-packages\nonebot\drivers\fastapi.py", line 153, in _lifespan_manager
await self._lifespan.startup()
File "E:\senbei310\lib\site-packages\nonebot\internal\driver_lifespan.py", line 42, in startup
await self._run_lifespan_func(self._startup_funcs)
File "E:\senbei310\lib\site-packages\nonebot\internal\driver_lifespan.py", line 36, in _run_lifespan_func
await cast(ASYNC_LIFESPAN_FUNC, func)()
File "E:\mcbot\senbeibot\src\plugins\nonebot_plugin_multincm\data_source.py", line 255, in _
await login()
File "E:\mcbot\senbeibot\src\plugins\nonebot_plugin_multincm\data_source.py", line 200, in login
await run_sync(LoginViaCellphone)(
File "E:\senbei310\lib\site-packages\nonebot\utils.py", line 182, in _wrapper
result = await loop.run_in_executor(None, partial(context.run, pfunc))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "E:\senbei310\lib\site-packages\pyncm\apis\login.py", line 176, in LoginViaCellphone
WriteLoginInfo(login_status, session)
File "E:\senbei310\lib\site-packages\pyncm\apis\login.py", line 28, in WriteLoginInfo
raise LoginFailedException(session.login_info["content"])
pyncm.apis.LoginFailedException: {'code': 8821, 'message': '需要行为验证码验证', 'redirectUrl': 'https://qa-yyy.igame.163.com/anquanhuanjingfengxian'}

@Intro1997
Copy link

用这里的 手机登录.py 例子的验证码登陆可正常登录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants