Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File "websockets\sync\connection.py", line 891, in close_socket AssertionError #1558

Open
albertyue opened this issue Nov 28, 2024 · 0 comments

Comments

@albertyue
Copy link

albertyue commented Nov 28, 2024

my program terminated with uncaught exception, here is the traceback log:

2024-11-28 18:40:25,154: websockets.server->send_context [DEBUG] ! error while sending data
Traceback (most recent call last):
  File "websockets\sync\connection.py", line 789, in send_context
  File "websockets\sync\connection.py", line 855, in send_data
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
2024-11-28 18:40:25,154: websockets.server->recv_events [DEBUG] ! error while receiving data
Traceback (most recent call last):
  File "websockets\sync\connection.py", line 640, in recv_events
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
2024-11-28 18:40:25,155: websockets.server->parse [DEBUG] < EOF
2024-11-28 18:40:25,155: root->except_hook [ERROR] Uncaught exception
Traceback (most recent call last):
  File "threading.py", line 980, in _bootstrap_inner
  File "threading.py", line 917, in run
  File "websockets\sync\server.py", line 204, in recv_events
  File "websockets\sync\connection.py", line 728, in recv_events
  File "websockets\sync\connection.py", line 891, in close_socket
AssertionError

seems like the connection not closed normally, maybe caused by poor network connectivity.
Is there any work-around ?
I would appreciate it if you could help me figure out what happend.


websockets version:14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant