You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/06/10 07:42:48 UTC

[GitHub] [incubator-brpc] LionelDong opened a new issue, #1792: [Protobuf 解析 IOBuf] Protobuf 解析IOBuf 数据异常

LionelDong opened a new issue, #1792:
URL: https://github.com/apache/incubator-brpc/issues/1792

   **Describe the bug (描述bug)**
   测试代码为/example/http_c++
   Protobuf 文件为:
   ![image](https://user-images.githubusercontent.com/7533395/173015012-cad94b2c-1eb6-4c89-9a90-711a095a537c.png)
   
   想解析通过post请求发送到server端的json数据,于是在示例代码中新增如下行
   ![image](https://user-images.githubusercontent.com/7533395/173015196-e8fa76a0-90f7-4e59-a187-a2edc4b3342c.png)
   输入信息如下:
   ![image](https://user-images.githubusercontent.com/7533395/173015309-fda34986-5b3b-4096-976b-5ba4a1cc24e4.png)
   第一个箭头部分是直接输出的request_attachment();
   第二个箭头是通过protobuf 解析数据后又序列化输出的内容;
   
   
   
   **Expected behavior (期望行为)**
   正确解析request_attachment()中的domains 列表数据;
   
   **Versions **
   OS: ubuntu20.04
   Compiler: Ubuntu clang version 15.0.0-++20220606091511+5018a5dcbe70-1~exp1~20220606091601.535
   brpc: 1.1.0
   protobuf: 3.0.0
   
   
   


-- 
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: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] LionelDong closed issue #1792: [Protobuf 解析 IOBuf] Protobuf 解析IOBuf 数据错误

Posted by GitBox <gi...@apache.org>.
LionelDong closed issue #1792: [Protobuf 解析 IOBuf] Protobuf 解析IOBuf 数据错误
URL: https://github.com/apache/incubator-brpc/issues/1792


-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] LionelDong commented on issue #1792: [Protobuf 解析 IOBuf] Protobuf 解析IOBuf 数据错误

Posted by GitBox <gi...@apache.org>.
LionelDong commented on issue #1792:
URL: https://github.com/apache/incubator-brpc/issues/1792#issuecomment-1153524838

   tks


-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jamesge commented on issue #1792: [Protobuf 解析 IOBuf] Protobuf 解析IOBuf 数据错误

Posted by GitBox <gi...@apache.org>.
jamesge commented on issue #1792:
URL: https://github.com/apache/incubator-brpc/issues/1792#issuecomment-1152424750

   protobuf自带的方法是解析不了json的,[json2pb/json_to_pb.h](https://github.com/apache/incubator-brpc/blob/master/src/json2pb/json_to_pb.h)下有提供转化的接口


-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org