AIGCT / EASYChatGPT

This is an application project of 'chatgpt',only applicable to desktop environment.
559 stars 690 forks source link

Task exception was never retrieved #1

Closed yehx1 closed 1 year ago

yehx1 commented 1 year ago

Task exception was never retrieved future: <Task finished coro=<WaitHelper.reject_on_timeout..reject() done, defined at D:\ProgramData\Anaconda3\lib\site-packages\playwright_impl_wait_helper.py:83> exception=CancelledError()> concurrent.futures._base.CancelledError

I found this error. And If I terminate proxy, the browser keep restarting again and again.

yehx1 commented 1 year ago

Traceback (most recent call last): File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_exceptions.py", line 10, in map_exceptions yield File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore\backends\sync.py", line 62, in start_tls raise exc File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore\backends\sync.py", line 58, in start_tls self._sock, server_hostname=server_hostname File "D:\ProgramData\Anaconda3\lib\ssl.py", line 412, in wrap_socket session=session File "D:\ProgramData\Anaconda3\lib\ssl.py", line 853, in _create self.do_handshake() File "D:\ProgramData\Anaconda3\lib\ssl.py", line 1117, in do_handshake self._sslobj.do_handshake() socket.timeout: _ssl.c:1039: The handshake operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_transports\default.py", line 60, in map_httpcore_exceptions yield File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_transports\default.py", line 218, in handle_request resp = self._pool.handle_request(req) File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_sync\connection_pool.py", line 253, in handle_request raise exc File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_sync\connection_pool.py", line 237, in handle_request response = connection.handle_request(request) File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_sync\http_proxy.py", line 259, in handle_request connect_request File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_sync\connection.py", line 86, in handle_request raise exc File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_sync\connection.py", line 63, in handle_request stream = self._connect(request) File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_sync\connection.py", line 150, in _connect stream = stream.start_tls(**kwargs) File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore\backends\sync.py", line 62, in start_tls raise exc File "D:\ProgramData\Anaconda3\lib\contextlib.py", line 130, in exit self.gen.throw(type, value, traceback) File "D:\ProgramData\Anaconda3\lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) httpcore.ConnectTimeout: _ssl.c:1039: The handshake operation timed out

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

Traceback (most recent call last): File "app.py", line 1, in from bbot import run File "D:\project\python\EASYChatGPT-main\bbot.py", line 10, in chatbot = Chatbot({}) File "D:\ProgramData\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 110, in init self.refresh_session() File "D:\ProgramData\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 305, in refresh_session "User-Agent": self.config["user_agent"], File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_client.py", line 1054, in get extensions=extensions, File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_client.py", line 821, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_client.py", line 912, in send history=[], File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_client.py", line 939, in _send_handling_auth history=history, File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_client.py", line 973, in _send_handling_redirects response = self._send_single_request(request) File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_client.py", line 1009, in _send_single_request response = transport.handle_request(request) File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_transports\default.py", line 218, in handle_request resp = self._pool.handle_request(req) File "D:\ProgramData\Anaconda3\lib\contextlib.py", line 130, in exit self.gen.throw(type, value, traceback) File "D:\ProgramData\Anaconda3\lib\site-packages\httpx_transports\default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectTimeout: _ssl.c:1039: The handshake operation timed out Task exception was never retrieved future: <Task finished coro=<WaitHelper.reject_on_timeout..reject() done, defined at D:\ProgramData\Anaconda3\lib\site-packages\playwright_impl_wait_helper.py:83> exception=CancelledError()> concurrent.futures._base.CancelledError

ITerydh commented 1 year ago

I found this error. And If I terminate proxy, the browser keep restarting again and again.

You need to quickly close the proxy after connecting to openai. It's only possible to succeed. QAQ