Skip to content

proxy-write and grpc-web not work together #8302

Answered by tzssangglass
wyudong asked this question in Q&A
Discussion options

You must be logged in to vote

PLAT at: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/grpc-web.md#enabling-the-plugin

While using the grpc-web Plugin, always using a prefix matching pattern (/, /grpc/example/) for matching Routes. This is because the gRPC Web client passes the package name, the service interface name, the method name and other information in the proto in the URI. For example, /path/a6.RouteService/Insert.

So, when absolute matching is used, the Plugin would not be hit and the information from the proto would not be extracted.

for example,

package a6;
option go_package = "./;a6";

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@tzssangglass
Comment options

Answer selected by wyudong
Comment options

You must be logged in to vote
2 replies
@tzssangglass
Comment options

@wyudong
Comment options

Comment options

You must be logged in to vote
1 reply
@tzssangglass
Comment options

Comment options

You must be logged in to vote
1 reply
@wyudong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants