Harry-Jing / nonebot-plugin-bing-chat

一个可以使用新版Bing进行聊天的NoneBot插件
GNU General Public License v3.0
170 stars 13 forks source link

无法连接到nebwing #69

Closed ABKQPO closed 1 year ago

ABKQPO commented 1 year ago

05-07 14:28:10 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_bing_chat.common) failed. Traceback (most recent call last): File "D:\NoneBot\ABK.venv\lib\site-packages\websockets\legacy\client.py", line 663, in __await_impl__ _transport, _protocol = await self._create_connection() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1036, in create_connection infos = await self._ensure_resolved( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1418, in _ensure_resolved return await loop.getaddrinfo(host, port, family=family, type=type, File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 863, in getaddrinfo return await self.run_in_executor( asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "", line 17, in File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot__init__.py", line 309, in run get_driver().run(*args, *kwargs) File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 198, in run uvicorn.run( File "D:\NoneBot\ABK.venv\lib\site-packages\uvicorn\main.py", line 569, in run server.run() File "D:\NoneBot\ABK.venv\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 636, 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 603, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1909, 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 "D:\NoneBot\ABK.venv\lib\site-packages\nonebot\message.py", line 141, in _check_matcher await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)

File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot\message.py", line 187, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 753, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 728, in simple_run await handler( File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot\dependencies__init.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot_plugin_bing_chat\onebotv11\main.py", line 121, in bingchat_command_chat raise exc File "D:\NoneBot\ABK.venv\lib\site-packages\nonebot_plugin_bing_chat\onebotv11\main.py", line 112, in bingchat_command_chat response = await chatbot.ask( File "D:\NoneBot\ABK.venv\lib\site-packages\EdgeGPT.py", line 376, in ask async for final, response in self.chat_hub.ask_stream( File "D:\NoneBot\ABK.venv\lib\site-packages\EdgeGPT.py", line 293, in ask_stream self.wss = await websockets.connect( File "D:\NoneBot\ABK.venv\lib\site-packages\websockets\legacy\client.py", line 659, in await_impl_timeout return await asyncio.wait_for(self.await_impl__(), self.open_timeout) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError

Nu11Const commented 1 year ago

网络连接问题,重试或者自己搭个反代服务器