02-23 17:18:16 [SUCCESS] nonebot | OneBot V11 3563910755 | [message.group.normal]: Message -1897984338 from 375109735@[群:716156302] '[at:qq=3563910755] 功能'
02-23 17:18:16 [INFO] nonebot | Event will be handled by Matcher(type='message', module=eigeenbot.plugins.nonebot_plugin_chatgpt.utils)
02-23 17:18:25 [ERROR] nonebot_plugin_chatgpt | ChatGPT request failed: Error: Execution context was destroyed, most likely because of a navigation
Traceback (most recent call last):
File "C:\Users\37510\Desktop\eigeenbot\eigeenbot\bot.py", line 36, in <module>
nonebot.run(app="__mp_main__:app")
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\__init__.py", line 273, in run
get_driver().run(*args, **kwargs)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\drivers\fastapi.py", line 187, in run
uvicorn.run(
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete
self.run_forever()
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever
self._run_once()
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once
handle._run()
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\message.py", line 141, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\message.py", line 187, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 732, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 707, in simple_run
await handler(
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
> File "C:\Users\37510\Desktop\eigeenbot\eigeenbot\eigeenbot\plugins\nonebot_plugin_chatgpt\__init__.py", line 66, in ai_chat
msg = await chat_bot(**session[event]).get_chat_response(text)
File "C:\Users\37510\Desktop\eigeenbot\eigeenbot\eigeenbot\plugins\nonebot_plugin_chatgpt\chatgpt.py", line 126, in get_chat_response
await self.get_cf_cookies(page)
File "C:\Users\37510\Desktop\eigeenbot\eigeenbot\eigeenbot\plugins\nonebot_plugin_chatgpt\chatgpt.py", line 236, in get_cf_cookies
if await label.count():
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\async_api\_generated.py", line 16462, in count
return mapping.from_maybe_impl(await self._impl_obj.count())
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_locator.py", line 342, in count
return await self._frame._query_count(self._selector)
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_frame.py", line 131, in _query_count
return await self._channel.send("queryCount", {"selector": selector})
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_connection.py", line 44, in send
return await self._connection.wrap_api_call(
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_connection.py", line 419, in wrap_api_call
return await cb()
File "C:\Users\37510\AppData\Local\Programs\Python\Python311\Lib\site-packages\playwright\_impl\_connection.py", line 79, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.Error: Execution context was destroyed, most likely because of a navigation
02-23 17:18:26 [INFO] nonebot | Matcher(type='message', module=eigeenbot.plugins.nonebot_plugin_chatgpt.utils) running complete
报告清单
影响版本
558389e
问题描述
复现步骤
headless=False
预期行为
No response
实际行为
No response
日志信息
No response
额外补充
PLUS账号