apache / apisix-java-plugin-runner

APISIX Plugin Runner in Java
https://apisix.apache.org/
Apache License 2.0
128 stars 95 forks source link

request help: I would like to implement a filter for grpc and/or grpc-transcode requests #237

Closed fjlavado closed 1 year ago

fjlavado commented 1 year ago

Issue description

We would like to implement a filter for GRPC and GRPC Transcoded requests where we will enrich the metadata section of the request, I have read a bit of the documentation but I haven't found a dedicated on grpc section, if this is not possible using the java plugin runner, please let me know.

Thanks in advance!

Environment

Apisix 3.2.0

fjlavado commented 1 year ago

I have followed the guide instruction.. registered the plugin, but when I'm receiving a grpc request... the body received is a binary (nothing that could be important), but when the plugin filter chain is executed, on the service the body is empty, but when receiving the grpc-transcode call the body exists and is propagated, could you help me on this? Or shall i move to a lua plugin?

This is the content of the request.getBody() ... which is the content of the grpc request in binary format. Captura desde 2023-05-01 23-30-38

fjlavado commented 1 year ago

Closing the issue, since this has become a BUG