-
Notifications
You must be signed in to change notification settings - Fork 906
[Bug]: 0.11.4 continues to exist websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK) #568
Comments
Traceback (most recent call last): |
Can't replicate. Please send minimum reproducible code |
Seems like a server side issue with Bing |
exception websockets.exceptions.ConnectionClosedOK(rcvd, sent, rcvd_then_sent=None)[source] A close code with code 1000 (OK) or 1001 (going away) or without a code was received and sent. |
but i don't konw why bing closed connection? |
except can raise out? |
Updating to 0.11.8 version |
I have the same issue after updating to 0.11.8
|
I ran into this issue before upgrading to version 0.11.8, is the network latency too high? |
Is there an existing issue for this?
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
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
Console logs
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
The text was updated successfully, but these errors were encountered: