You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/05/27 10:52:27 UTC
[GitHub] [apisix] Jadesource opened a new issue, #7154: bug: [grpc transcoding] Can not convert protobuf message's sub array message from json input
Jadesource opened a new issue, #7154:
URL: https://github.com/apache/apisix/issues/7154
### Current Behavior
grpc-transcode插件转码 对于自定义对象的数组类型 丢失参数
### Expected Behavior
_No response_
### Error Logs
apisix无错误日志
### Steps to Reproduce
step1: 在vm环境启动apisix,路由上配置grpc-transcode插件,如图:
![图片](https://user-images.githubusercontent.com/30541377/170684336-bd8ba575-0f1f-4a7b-9ad7-8e3b87cf6c8d.png)
step2: 在官网链接,下载grpc-example带代码,增加一个method,proto如下:
![图片](https://user-images.githubusercontent.com/30541377/170684594-3c9ba6f2-5c6b-4250-bfeb-0ac3a0a23b0a.png)
![图片](https://user-images.githubusercontent.com/30541377/170684557-7c8895b0-2c4e-494a-ae79-9247ae941b68.png)
![图片](https://user-images.githubusercontent.com/30541377/170685192-6e0e380d-4f7d-4569-8617-a2651b4bdddf.png)
step3: 使用python编译出base64,put 到 etcd
step4: 使用postman调用该路由接口,如图
![图片](https://user-images.githubusercontent.com/30541377/170685161-6e164f40-dfe6-4556-8d39-5eb6865e3fa0.png)
step5: grpc服务端log:
![图片](https://user-images.githubusercontent.com/30541377/170685276-a88323c4-d167-4e32-be8b-c6e8ebfeaffb.png)
实际调用是有传递 subArray参数, 但是根据服务端log可以看到,SubArray参数为 nil
同样我发现别人也有这个问题
#https://github.com/apache/apisix/issues/5591
### Environment
- APISIX version (run `apisix version`):2.13
- Operating system (run `uname -a`):windows + centos
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- 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`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Jadesource closed issue #7154: bug: [grpc transcoding] Can not convert protobuf message's sub array message from json input
Posted by GitBox <gi...@apache.org>.
Jadesource closed issue #7154: bug: [grpc transcoding] Can not convert protobuf message's sub array message from json input
URL: https://github.com/apache/apisix/issues/7154
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Jadesource commented on issue #7154: bug: [grpc transcoding] Can not convert protobuf message's sub array message from json input
Posted by GitBox <gi...@apache.org>.
Jadesource commented on issue #7154:
URL: https://github.com/apache/apisix/issues/7154#issuecomment-1140183639
/apisix/plugins/grpc-transcode/util.lua map_message函数有bug,递归替换defualt value时,使用 table[name]无法获取数组对象导致。
![图片](https://user-images.githubusercontent.com/30541377/170812917-6265fda6-b447-4ef1-8b25-20a7d619f020.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Jadesource commented on issue #7154: bug: [grpc transcoding] Can not convert protobuf message's sub array message from json input
Posted by GitBox <gi...@apache.org>.
Jadesource commented on issue #7154:
URL: https://github.com/apache/apisix/issues/7154#issuecomment-1139512654
@spacewander @nic-chen 能帮忙看下吗?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org