-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: grpc-web plugin truncates trailing headers #10254
Comments
I'm not sure if APISIX modified the response because it's clear from the code that the only (response) body modification involved in the Can encoding lead to such an issue? 🤔 |
The content-type is application/grpc-web and it uses binary encoding according to code.
Just as you mentioned, the weird thing is that there is no explicit code modifying response body. Any clue? |
Facing the same issue, any update on this? |
continue discussion on #10573 |
@RogueJin , can you please check this and verify if changing from |
we decided to give up grpc-web months ago since the issue, but I would check it in my spare time. thanks for the fixing anyway.
|
Current Behavior
The response from grpc server has a trailing header but APISIX grpcweb plugin truncates it and causes client error.
The related code of grpc-dotnet could be checked here:
https://github.com/grpc/grpc-dotnet/blob/46480fca2fccddb3391cf267004f281afe87571d/src/Grpc.Net.Client/Internal/GrpcProtocolHelpers.cs#L386
Expected Behavior
Trailing headers could be reserved for client.
Error Logs
No response
Steps to Reproduce
Environment
apisix version
): 3.5.0uname -a
):Linux 49c5eb4d90cd 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 aarch64 GNU/Linux
OpenResty / Nginx version (run
openresty -V
ornginx -V
):nginx version: openresty/1.21.4.1
built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
built with OpenSSL 1.1.1s 1 Nov 2022
TLS SNI support enabled
etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info
):APISIX Dashboard version, if relevant:
Plugin runner version, for issues related to plugin runners:
LuaRocks version, for installation issues (run
luarocks --version
):The text was updated successfully, but these errors were encountered: