You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was troubleshooting the issue apache/apisix-dashboard#2662, I found that the proto_id field of the grpc-transcode plugin is of type string/integer. but the strange thing is that when configured as string, everything is fine, and when configured as integer, APISIX shows the following error log:
2023/02/27 07:47:13 [error] 51#51: *377378 [lua] grpc-transcode.lua:146: phase_func(): proto load error: failed to find proto by id: 1, client: 172.19.0.1, server: _, request: "GET /grpctest HTTP/1.1", host: "127.0.0.1:9080"
Expected Behavior
The configuration should work correctly regardless of whether string or integer types are used. Otherwise, the documentation needs to be updated.
Error Logs
2023/02/27 07:47:13 [error] 51#51: *377378 [lua] grpc-transcode.lua:146: phase_func(): proto load error: failed to find proto by id: 1, client: 172.19.0.1, server: _, request: "GET /grpctest HTTP/1.1", host: "127.0.0.1:9080"
Current Behavior
When I was troubleshooting the issue apache/apisix-dashboard#2662, I found that the
proto_idfield of thegrpc-transcodeplugin is of typestring/integer. but the strange thing is that when configured as string, everything is fine, and when configured as integer, APISIX shows the following error log:Expected Behavior
The configuration should work correctly regardless of whether string or integer types are used. Otherwise, the documentation needs to be updated.
Error Logs
Steps to Reproduce
Follow the steps in https://apisix.apache.org/docs/apisix/plugins/grpc-transcode/#enabling-the-plugin
Environment
apisix version): 3.1.0uname -a): Linux cedc51dc68a5 5.15.49-linuxkit change: added doc of how to load plugin. #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 GNU/Linuxopenresty -Vornginx -V):curl http://127.0.0.1:9090/v1/server_info):luarocks --version):