You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "VinncentWong (via GitHub)" <gi...@apache.org> on 2024/02/09 03:04:51 UTC
[I] dubbo client send wrong data to provider and the returned data type from provider also wrong [dubbo]
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


However, the provider didn't get the unique code, idk what happened in here since I follow the documentation that is provided


Also, the dubbo provider return wrong data so I get ClassCastException

`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: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] dubbo client send wrong data to provider and the returned data type from provider also wrong [dubbo]
Posted by "VinncentWong (via GitHub)" <gi...@apache.org>.
VinncentWong closed issue #13754: dubbo client send wrong data to provider and the returned data type from provider also wrong
URL: https://github.com/apache/dubbo/issues/13754
--
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@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] dubbo client send wrong data to provider and the returned data type from provider also wrong [dubbo]
Posted by "VinncentWong (via GitHub)" <gi...@apache.org>.
VinncentWong commented on issue #13754:
URL: https://github.com/apache/dubbo/issues/13754#issuecomment-1937411804
Solved, the problem is with my dubbo protocol. 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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org