EdgeGPT icon indicating copy to clipboard operation
EdgeGPT copied to clipboard

[Bug]: 0.11.4 continues to exist websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)

Open kang121209 opened this issue 1 year ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi result = await app( # type: ignore[func-returns-value] File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call return await self.app(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 276, in call await super().call(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call raise exc File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call await self.app(scope, receive, _send) File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call raise exc File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call await self.app(scope, receive, sender) File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call raise e File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 718, in call await route.handle(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 69, in app await response(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/responses.py", line 270, in call async with anyio.create_task_group() as task_group: File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit raise exceptions[0] File "/usr/local/lib/python3.10/site-packages/starlette/responses.py", line 273, in wrap await func() File "/usr/local/lib/python3.10/site-packages/starlette/responses.py", line 262, in stream_response async for chunk in self.body_iterator: File "/data/web/xiezuo.gptlala.com/aiboxs/api/common.py", line 85, in generate async for c in massage: File "/usr/local/lib/python3.10/site-packages/EdgeGPT/EdgeGPT.py", line 168, in ask_stream async for response in self.chat_hub.ask_stream( File "/usr/local/lib/python3.10/site-packages/EdgeGPT/chathub.py", line 128, in ask_stream msg = await wss.recv() File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 568, in recv await self.ensure_open() File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 944, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)

Version where the problem happens

python3.10

What Python version are you running this with?

python3.10

What is your operating system ?

No response

Command Line Arguments

websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)

Console logs

websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)

Additional information

websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)

[root@gptlala xiezuo.gptlala.com]# pip list|grep Ed EdgeGPT 0.11.4

kang121209 avatar Jun 21 '23 13:06 kang121209