RockChinQ / revLibs

ChatGPT、Claude QQ 机器人,以插件形式为 QChatGPT 项目接入ChatGPT、Claude、Bard、gpt4free等接口的逆向工程库
205 stars 17 forks source link

asyncio.exceptions.TimeoutError #217

Closed o3oGekkou closed 11 months ago

o3oGekkou commented 11 months ago

请您认真填写以下信息。

任务

预期/正在使用的逆向库

我要使用的逆向库是:New Bing

实际情况

实际情况是: Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 662, in __await_impl__ await protocol.handshake( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 329, in handshake raise InvalidStatusCode(status_code, response_headers) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout return await self.await_impl() File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 676, in await_impl await protocol.wait_closed() asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/QChatGPT/plugins/revLibs/pkg/process/procmsg.py", line 39, in process_message for section in session.get_reply(prompt): File "/root/QChatGPT/plugins/revLibs/pkg/process/revss.py", line 102, in get_reply for reply_period_msg, reply_period_dict in self.rev_interface_impl.get_reply(prompt, **kwargs): File "/root/QChatGPT/plugins/revLibs/pkg/process/impls/edgegpt.py", line 61, in get_reply resp = asyncio.run(task) File "/root/miniconda3/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/root/miniconda3/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/EdgeGPT.py", line 116, in ask async for final, response in self.chat_hub.ask_stream( File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/chathub.py", line 102, in ask_stream async with connect( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 637, in aenter return await self File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 654, in await_impl_timeout async with asyncio_timeout(self.open_timeout): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 169, in aexit self._do_exit(exc_type) File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 252, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError [2023-07-20 16:30:14.026] procmsg.py (63) - [ERROR] : Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 662, in __await_impl__ await protocol.handshake( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 329, in handshake raise InvalidStatusCode(status_code, response_headers) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout return await self.await_impl() File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 676, in await_impl await protocol.wait_closed() asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/QChatGPT/plugins/revLibs/pkg/process/procmsg.py", line 39, in process_message for section in session.get_reply(prompt): File "/root/QChatGPT/plugins/revLibs/pkg/process/revss.py", line 102, in get_reply for reply_period_msg, reply_period_dict in self.rev_interface_impl.get_reply(prompt, **kwargs): File "/root/QChatGPT/plugins/revLibs/pkg/process/impls/edgegpt.py", line 61, in get_reply resp = asyncio.run(task) File "/root/miniconda3/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/root/miniconda3/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/EdgeGPT.py", line 116, in ask async for final, response in self.chat_hub.ask_stream( File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/chathub.py", line 102, in ask_stream async with connect( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 637, in aenter return await self File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 654, in await_impl_timeout async with asyncio_timeout(self.open_timeout): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 169, in aexit self._do_exit(exc_type) File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 252, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError

[2023-07-20 16:30:14.044] procmsg.py (64) - [WARNING] : 失败,重试(3/3)... Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 662, in __await_impl__ await protocol.handshake( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 329, in handshake raise InvalidStatusCode(status_code, response_headers) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout return await self.await_impl() File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 676, in await_impl await protocol.wait_closed() asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/QChatGPT/plugins/revLibs/pkg/process/procmsg.py", line 39, in process_message for section in session.get_reply(prompt): File "/root/QChatGPT/plugins/revLibs/pkg/process/revss.py", line 102, in get_reply for reply_period_msg, reply_period_dict in self.rev_interface_impl.get_reply(prompt, **kwargs): File "/root/QChatGPT/plugins/revLibs/pkg/process/impls/edgegpt.py", line 61, in get_reply resp = asyncio.run(task) File "/root/miniconda3/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/root/miniconda3/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/EdgeGPT.py", line 116, in ask async for final, response in self.chat_hub.ask_stream( File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/chathub.py", line 102, in ask_stream async with connect( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 637, in aenter return await self File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 654, in await_impl_timeout async with asyncio_timeout(self.open_timeout): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 169, in aexit self._do_exit(exc_type) File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 252, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError [2023-07-20 16:30:26.083] main.py (120) - [ERROR] : [rev] Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 662, in __await_impl__ await protocol.handshake( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 329, in handshake raise InvalidStatusCode(status_code, response_headers) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout return await self.await_impl() File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 676, in await_impl await protocol.wait_closed() asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/QChatGPT/plugins/revLibs/main.py", line 113, in normal_message_received reply_message = procmsg.process_message(session_name=kwargs['launchertype']+""+str(kwargs['launcher_id']), File "/root/QChatGPT/plugins/revLibs/pkg/process/procmsg.py", line 68, in process_message raise e File "/root/QChatGPT/plugins/revLibs/pkg/process/procmsg.py", line 39, in process_message for section in session.get_reply(prompt): File "/root/QChatGPT/plugins/revLibs/pkg/process/revss.py", line 102, in get_reply for reply_period_msg, reply_period_dict in self.rev_interface_impl.get_reply(prompt, **kwargs): File "/root/QChatGPT/plugins/revLibs/pkg/process/impls/edgegpt.py", line 61, in get_reply resp = asyncio.run(task) File "/root/miniconda3/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/root/miniconda3/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/EdgeGPT.py", line 116, in ask async for final, response in self.chat_hub.ask_stream( File "/root/miniconda3/lib/python3.10/site-packages/EdgeGPT/chathub.py", line 102, in ask_stream async with connect( File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 637, in aenter return await self File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/client.py", line 654, in await_impl_timeout async with asyncio_timeout(self.open_timeout): File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 169, in aexit self._do_exit(exc_type) File "/root/miniconda3/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 252, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError

RockChinQ commented 11 months ago

好像最近new bing都这样,去 acheong08/EdgeGPT 的 issues看看吧