gaoxingliang opened a new issue, #8655:
URL: https://github.com/apache/apisix/issues/8655

   ### Current Behavior
   
   # Problem
   The inner struct object has not been parsed correctly. and is empty when 
using grpc-transcode plugin.
   # details
   I have a grpc serivce with has below definition:
   ```
   --- the request part
   message RawRequest {
     google.protobuf.Struct reqdata = 1;
     string type = 2;
     string serviceurl = 3;
     string source = 4;
     int32 page = 5;
     int32 size = 6;
   }
   ```
   and I try to send a post request in postman with below request args:
   ```
   {
       "type":"7",
       "serviceurl" :"xxxx",
       "reqdata" :{
           "key":"yyyy",
           "key_type":"zzzz",
           "model":"tttt"
       },
       "source":"3"
   }
   ```
   and When I checking the logs, I found the reqdata object is empty (not 
null). 
   
   
   ### Expected Behavior
   
   The struct object should has data.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Create a routing from rest to grpc with grpc transcode.
   2. and checking whether the grpc service side can receive the correct data.
   
   ### Environment
   
   apisix: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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to