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

【错误回报】截图失败 #437

Open
sapphire159 opened this issue Nov 30, 2023 · 0 comments
Open

【错误回报】截图失败 #437

sapphire159 opened this issue Nov 30, 2023 · 0 comments

Comments

@sapphire159
Copy link

运行环境

win10 22h2

HarukaBot 版本

1.6.0p5

go-cqhttp 版本

1.2.0

错误描述

报错截图失败
能截图,但是截的图并未展开完整。

报错日志(如果有)

检测到新动态(869715492889165863):明日方舟(161775300)
11-30 17:00:34 [INFO] haruka_bot | 初始化浏览器
11-30 17:00:46 [ERROR] haruka_bot | 动态 869715492889165863 截图失败
Traceback (most recent call last):
  File "<string>", line 25, in <module>
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\nonebot\__init__.py", line 331, in run
    get_driver().run(*args, **kwargs)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
    uvicorn.run(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\uvicorn\main.py", line 587, in run
    server.run()
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\uvicorn\server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
    self.run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
    self._run_once()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once
    handle._run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\Administrator\QQ-bot1\.venv\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\QQ-bot1\.venv\lib\site-packages\haruka_bot\plugins\pusher\dynamic_pusher.py", line 78, in dy_sched
    image, err = await get_dynamic_screenshot(dynamic_id)
> File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\haruka_bot\utils\browser.py", line 79, in get_dynamic_screenshot
    page, clip = await get_dynamic_screenshot_mobile(dynamic_id, page)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\haruka_bot\utils\browser.py", line 123, in get_dynamic_screenshot_mobile
    page = await captcha.solve_captcha(page, url)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\aunly_captcha_solver\__init__.py", line 71, in solve_captcha
    await page.goto(url, wait_until="networkidle", timeout=10000)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\async_api\_generated.py", line 9260, in goto
    await self._impl_obj.goto(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_page.py", line 475, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_frame.py", line 139, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 62, in send
    return await self._connection.wrap_api_call(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 492, in wrap_api_call
    return await cb()
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 100, in inner_send
    result = next(iter(done)).result()
playwright._impl._errors.TimeoutError: Timeout 10000ms exceeded.
11-30 17:00:54 [WARNING] apscheduler | Execution of job "dy_sched (trigger: interval[0:00:20], next run at: 2023-11-30 17:00:54 CST)" skipped: maximum number of running instances reached (1)
11-30 17:00:56 [ERROR] haruka_bot | 动态 869715492889165863 截图失败
Traceback (most recent call last):
  File "<string>", line 25, in <module>
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\nonebot\__init__.py", line 331, in run
    get_driver().run(*args, **kwargs)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
    uvicorn.run(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\uvicorn\main.py", line 587, in run
    server.run()
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\uvicorn\server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
    self.run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
    self._run_once()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once
    handle._run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\Administrator\QQ-bot1\.venv\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\QQ-bot1\.venv\lib\site-packages\haruka_bot\plugins\pusher\dynamic_pusher.py", line 78, in dy_sched
    image, err = await get_dynamic_screenshot(dynamic_id)
> File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\haruka_bot\utils\browser.py", line 79, in get_dynamic_screenshot
    page, clip = await get_dynamic_screenshot_mobile(dynamic_id, page)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\haruka_bot\utils\browser.py", line 123, in get_dynamic_screenshot_mobile
    page = await captcha.solve_captcha(page, url)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\aunly_captcha_solver\__init__.py", line 71, in solve_captcha
    await page.goto(url, wait_until="networkidle", timeout=10000)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\async_api\_generated.py", line 9260, in goto
    await self._impl_obj.goto(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_page.py", line 475, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_frame.py", line 139, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 62, in send
    return await self._connection.wrap_api_call(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 492, in wrap_api_call
    return await cb()
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 100, in inner_send
    result = next(iter(done)).result()
playwright._impl._errors.TimeoutError: Timeout 10000ms exceeded.
11-30 17:01:07 [ERROR] haruka_bot | 动态 869715492889165863 截图失败
Traceback (most recent call last):
  File "<string>", line 25, in <module>
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\nonebot\__init__.py", line 331, in run
    get_driver().run(*args, **kwargs)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
    uvicorn.run(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\uvicorn\main.py", line 587, in run
    server.run()
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\uvicorn\server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
    self.run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
    self._run_once()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once
    handle._run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\Administrator\QQ-bot1\.venv\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\QQ-bot1\.venv\lib\site-packages\haruka_bot\plugins\pusher\dynamic_pusher.py", line 78, in dy_sched
    image, err = await get_dynamic_screenshot(dynamic_id)
> File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\haruka_bot\utils\browser.py", line 79, in get_dynamic_screenshot
    page, clip = await get_dynamic_screenshot_mobile(dynamic_id, page)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\haruka_bot\utils\browser.py", line 123, in get_dynamic_screenshot_mobile
    page = await captcha.solve_captcha(page, url)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\aunly_captcha_solver\__init__.py", line 71, in solve_captcha
    await page.goto(url, wait_until="networkidle", timeout=10000)
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\async_api\_generated.py", line 9260, in goto
    await self._impl_obj.goto(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_page.py", line 475, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_frame.py", line 139, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 62, in send
    return await self._connection.wrap_api_call(
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 492, in wrap_api_call
    return await cb()
  File "C:\Users\Administrator\QQ-bot1\.venv\lib\site-packages\playwright\_impl\_connection.py", line 100, in inner_send
    result = next(iter(done)).result()
playwright._impl._errors.TimeoutError: Timeout 10000ms exceeded.
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

1 participant