-
Notifications
You must be signed in to change notification settings - Fork 92
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
AttributeError: 'H2Connection' object has no attribute '_frame_dispatch_table' #156
Comments
Can you search in your logs the reason why connection was closed? Possible reasons:
Maybe you can comment those lines where |
The reason is lost TCP connection, but that seems to actually be ok in most cases, and recover. But sometimes it fails with the above exception - race condition? When I commented out the removal of |
I've also been experiencing this on BetterProto's CI. https://github.com/danielgtaylor/python-betterproto/runs/6114120556?check_suite_focus=true and https://github.com/danielgtaylor/python-betterproto/runs/6114156605?check_suite_focus=true |
@Gobot1234 Fixed your case in d02ef84. As you can see it was caused by |
Thank you! |
From time to time, in our applications that do client calls to gRPC APIs we see this kind of error:
I found these lines in the grpclib, that seem to be responsible for the above error.
When I set a breakpoint on the incriminated line, the data passed to the
_receive_frame
method were this:I don't know much about http/2, but according to this, the frame is valid. Is it possible that the connection objects (
_frame_dispatch_table
) were deleted prematurely?grpclib == 0.4.2
python 3.8+
Let me know if some more debug info is needed, I will try to provide as much of it as possible
The text was updated successfully, but these errors were encountered: