5-06 14:42:28 [INFO] haruka_bot | 检测到新动态(792485847879385096):磯辺もち-矶边饼(1266172489)
5-06 14:42:29 [ERROR] haruka_bot | 截取动态时发生错误:https://t.bilibili.com/792485847879385096
raceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\Documents\py39\-3.9\Scripts\nb.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\nb_cli\commands\main.py", line 30, in run
run_bot(file, app)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\nb_cli\handlers\deploy.py", line 25, in run_bot
nonebot.run(app=f"{module_name}:{app}")
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\nonebot\__init__.py", line 309, in run
get_driver().run(*args, **kwargs)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\nonebot\drivers\fastapi.py", line 198, in run
uvicorn.run(
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 634, in run_unti
_complete
self.run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 321, in run_f
rever
super().run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 601, in run_fore
er
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1905, in _run_on
e
handle._run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\apscheduler\executors\base_py3.py", line 30, in run
coroutine_job
retval = await job.func(*job.args, **job.kwargs)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\haruka_bot\plugins\pusher\dynamic_pusher.py", line
2, in dy_sched
image = await get_dynamic_screenshot(dynamic_id)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\haruka_bot\utils\browser.py", line 40, in get_dynam
c_screenshot
return await get_dynamic_screenshot_pc(dynamic_id)
File "C:\Users\Administrator\Documents\py39\-3.9\lib\site-packages\haruka_bot\utils\browser.py", line 138, in get_dyna
ic_screenshot_pc
assert card
ssertionError
运行环境
Windows Server 2012
HarukaBot 版本
v1.5.3.post2
go-cqhttp 版本
1.0.0-rc5
错误描述
推送时100%发送一张空白图,同时有报错。 希望能在不更换系统的前提下解决报错,正常截取动态。![image](https://user-images.githubusercontent.com/110553307/236609464-5b263dd6-1f30-431d-bbc6-f9f059b43982.png)
此外,因为系统是2012,所以手动进行了pip install playwright==1.30,不确定这是否是导致问题的原因。
报错日志(如果有)