-
Notifications
You must be signed in to change notification settings - Fork 105
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
HTTP2 Trailers not being sent #254
Comments
Ok, so I did more digging, and it looks like some issue with https://github.com/python-hyper/h2/blob/master/src/h2/stream.py#L863the function taken from the map here sets Then this check https://github.com/python-hyper/h2/blob/master/src/h2/stream.py#L877 (it looks correct since according to the spec "The HEADERS frame starting the trailers header block has the END_STREAM flag set.") I tried setting
however it works better in Postman (I see the status code, but no response body). I'm gonna keep investigating, it's likely that it's a different issue. |
It looks like because trailers now set |
Hi, I know that it's probably a stretch since it's likely covered by a bunch of tests, but I tried everything and I can't get it to work. So I'm playing with connecting gRPC to ASGI using hypercorn, and I made this very simple app:
here's the proto (though I doubt it matters)
I run the client by
grpcurl -proto helloworld.proto -plaintext -d '{"name": "World"}' localhost:50051 helloworld.Greeter/SayHello
and the error I get is
This area is completely new to me so there might be some rookie mistake (maybe not related to trailers at all), but I checked the ASGI spec, and my trailers look ok, I ran it through debugger and it looks like it's being sent, however I don't see them in Wireshark and the clients (I tried Postman and grpcurl) both fail.
In the debugger I saw that the response body is sent (I see the "World" string), I also see some stuff being sent afterwards, but nothing looking like the trailers that I set.
Any help is appreciated, and congrats for an amazing lib, it's been a long time since I saw one that's so readable inside.
The text was updated successfully, but these errors were encountered: