12-13 19:41:18 [ERROR] nonebot_plugin_chatgpt | 刷新会话失败: HTTP403 Just a moment...

chat.openai.com

Checking if the site connection is secure

chat.openai.com needs to review the security of your connection before proceeding.
Traceback (most recent call last): File "C:\zhenxun_bot-main\plugins\nonebot_plugin_chatgpt\chatgpt.py", line 218, in get_cf_cookies cf_clearance = next(filter(lambda x: x["name"] == "cf_clearance", cookies)) StopIteration The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\zhenxun_bot-main\bot.py", line 22, in nonebot.run() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\nonebot\__init__.py", line 273, in run get_driver().run(*args, **kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run uvicorn.run( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\uvicorn\main.py", line 576, in run server.run() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\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\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\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\nonebot\message.py", line 142, in _check_matcher await _run_matcher(Matcher, bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\nonebot\message.py", line 186, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\nonebot\internal\matcher.py", line 716, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\nonebot\internal\matcher.py", line 688, in simple_run await handler( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-QrKL2Zgd-py3.10\lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__ return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "C:\zhenxun_bot-main\plugins\nonebot_plugin_chatgpt\__init__.py", line 60, in ai_chat msg = await chat_bot(**session[event]).get_chat_response(text) File "C:\zhenxun_bot-main\plugins\nonebot_plugin_chatgpt\chatgpt.py", line 94, in get_chat_response await self.refresh_session() File "C:\zhenxun_bot-main\plugins\nonebot_plugin_chatgpt\chatgpt.py", line 151, in refresh_session await self.refresh_session() > File "C:\zhenxun_bot-main\plugins\nonebot_plugin_chatgpt\chatgpt.py", line 150, in refresh_session await self.get_cf_cookies() RuntimeError: coroutine raised StopIteration