vearne / grpcreplay

GrpcReplay is an open-source network monitoring tool which can record your grpc traffic and use it for shadowing, load testing, monitoring and detailed analysis.
MIT License
16 stars 3 forks source link

paser data error. #19

Closed fireblackman closed 3 months ago

fireblackman commented 3 months ago

如果项目是Python或者是Java的grpc服务,怎么使用grpc反射,我测试的demo是Python的,好像并不能正常使用

vearne commented 3 months ago

Please give me the python or java demo so I can try it. @fireblackman

vearne commented 3 months ago

如果项目是Python或者是Java的grpc服务,怎么使用grpc反射,我测试的demo是Python的,好像并不能正常使用

https://github.com/grpc/grpc-java/tree/master/examples/example-reflection

vearne commented 3 months ago

I tested it again and there was no problem with java gRPC. @fireblackman java grpc demo How to use the demo

vearne commented 3 months ago

I tested it again and there was no problem with python gRPC. @fireblackman python grpc demo How to use the demo

fireblackman commented 3 months ago

Thanks, I will try it again

fireblackman commented 3 months ago

$ sudo ./grpcr --input-raw="127.0.0.1:50051" --output-stdout --output-grpc="grpc://127.0.0.1:50052"


/ __// \ / \ / __// \ / / / // // // // / / // / / // // , // // /_ / , / __/// ||/_/ \/// ||
2024/07/27 11:06:23 [info] input-raw, [127.0.0.1:50051] 2024/07/27 11:06:23 [info] input-file-directory, [] 2024/07/27 11:06:23 [info] input-file-replay-speed, 1 2024/07/27 11:06:23 [info] input-rocketmq-name-server, [] 2024/07/27 11:06:23 [info] input-rocketmq-topic, test 2024/07/27 11:06:23 [info] output-stdout, true 2024/07/27 11:06:23 [info] output-file-directory, [] 2024/07/27 11:06:23 [info] output-grpc, [grpc://127.0.0.1:50052] 2024/07/27 11:06:23 [info] output-rocketmq-name-server, [] 2024/07/27 11:06:23 [info] output-rocketmq-topic, test 2024/07/27 11:06:23 [info] create new Processer 2024/07/27 11:06:23 [info] ipSet:[fe80::8404:b0ff:fe4f:c4bc fe80::e893:62ff:fe13:1c59 192.168.40.222 fe80::594d:4f40:eed7:a59d 127.0.0.1 ::1 172.17.0.1 fe80::42:d1ff:fec3:674] 2024/07/27 11:06:23 [info] create grpc output, addr:127.0.0.1:50052 2024/07/27 11:06:23 [info] plugins:##### len(Inputs):1, len(Outputs):2, len(All):3 ##### 2024/07/27 11:06:23 [info] All history connections has exited. 2024/07/27 11:06:23 [info] listener:device:lo, port:50051, filter:tcp and port 50051 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error 2024/07/27 11:08:16 [error] netPkg error:process packet error

image image image

fireblackman commented 3 months ago

我试了下,但是还是不能转发给另一个服务,不知道是哪里出了问题,还要麻烦指点一下

vearne commented 3 months ago

I have reproduced the problem, I will check it out

vearne commented 3 months ago

我试了下,但是还是不能转发给另一个服务,不知道是哪里出了问题,还要麻烦指点一下

This problem is caused by the fact that vearne/grpcreplay does not support IPv6. I have modified the code and now it can support IPv6. Please update the code and rebuild the bin file. @fireblackman

fireblackman commented 3 months ago

Thanks, I have tried it again, it worked