Closed rabintang closed 7 months ago
Just a aiohttp warning: when you no longer want to use the bot, you need to call bot.close().
If you are using Jupyter, you need to install nest_asyncio and call nest_asyncio.apply() before calling every asyncio function.
thank you for you quick response! i run it by command line, not python code. for i'm new in Network area, may you tell me detail steps? thank you!
Please use code to run ReEdgeGPT now, I will fix command line bot today.
thank you for you quick response! i run it by command line, not python code. for i'm new in Network area, may you tell me detail steps? thank you!
And I check this error, look like your proxy service provider close the connection. You can read details on this Stackoverflow link: https://stackoverflow.com/questions/1434451/what-does-connection-reset-by-peer-mean
I can run command line bot without using proxy service
thanks for your response! when i run in a USA server, then it works! it should be the problem of the proxy, as you say.
Hello, can you help me to see what the problem is?
Bot: Traceback (most recent call last): File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/re_edge_gpt/__main__.py", line 248, in <module> main() File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/re_edge_gpt/__main__.py", line 244, in main asyncio.run(async_main(args)) File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/re_edge_gpt/__main__.py", line 128, in async_main await bot.ask( File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/re_edge_gpt/chat/re_edge_gpt.py", line 116, in ask async for final, response in self.chat_hub.ask_stream( File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/re_edge_gpt/chat/chathub.py", line 103, in ask_stream wss = await self.aio_session.ws_connect( File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/aiohttp/client.py", line 825, in _ws_connect resp = await self.request( File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/aiohttp/client.py", line 574, in _request conn = await self._connector.connect( File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/aiohttp/connector.py", line 909, in _create_connection _, proto = await self._create_proxy_connection(req, traces, timeout) File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/aiohttp/connector.py", line 1307, in _create_proxy_connection resp = await proxy_resp.start(conn) File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 965, in start message, payload = await protocol.read() # type: ignore[union-attr] File "/Users/rabintang/miniconda3/envs/aigc/lib/python3.10/site-packages/aiohttp/streams.py", line 622, in read await self._waiter aiohttp.client_exceptions.ClientOSError: [Errno 54] Connection reset by peer Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x109871030>