VinncentWong opened a new issue, #13754:
URL: https://github.com/apache/dubbo/issues/13754

   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   <!-- For all design discussions please continue. -->
   I have an application that sends data to dubbo provider
   
![image](https://github.com/apache/dubbo/assets/88434717/d1fa6996-b2a5-4de8-a16d-a9e761834674)
   
![image](https://github.com/apache/dubbo/assets/88434717/e81beb15-3af8-47ba-bf52-cf97ce29f9f6)
   
   However, the provider didn't get the unique code, idk what happened in here 
since I follow the documentation that is provided
   
![image](https://github.com/apache/dubbo/assets/88434717/bfc66ece-7aab-4dd8-9391-0a4d834a2c77)
   
![image](https://github.com/apache/dubbo/assets/88434717/1988bf9b-fa6a-41c7-bb10-3c54ce71e69c)
   
   Also, the dubbo provider return wrong data so I get ClassCastException
   
![image](https://github.com/apache/dubbo/assets/88434717/7762bb4b-2935-4b15-a9d3-a8472bc38572)
   `StubInvocationUtil.unaryCall(...)` return type of 
`org.dubbo.springboot.MedicFacilityParam` instead of 
`org.dubbo.springboot.MedicFacility`  but the proto file I defined is 
   
   ```
   syntax = "proto3";
   
   import "parent.proto";
   
   option java_multiple_files = true;
   option java_outer_classname = "Dubbo";
   
   package org.dubbo.springboot;
   
   /* Medic Facility */
   
   message MedicFacility{
       int64 id = 1;
       string email = 2;
       string username = 3;
       string unique_code = 4;
       string telephone_number = 5;
       string whatsapp_number = 6;
       string address = 7;
       bool is_active = 8;
   }
   
   message MedicFacilityParam{
       int64 id = 1;
       repeated int64 ids = 2;
       string email = 3;
       string unique_code = 4;
       PgParam pg_param = 5;
   }
   
   message ListMedicFacility{
       repeated MedicFacility medic_facilities = 1;
       Pagination pg = 2;
   }
   
   service MedicFacilityService{
       rpc Get(MedicFacilityParam) returns (MedicFacility);
       rpc GetList(MedicFacilityParam) returns (ListMedicFacility);
   }
   ```
   
   Do I miss something here? thank you


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to