You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should the rpc method in the proto file be defined as PascalCase or camelCase?
No matter which one, go and java are currently unable to communicate with each other.
rpc method using PascalCase:
// The greeting service definition.serviceGreeterService {
// Sends a greetingrpcGreet(HelloRequest) returns (HelloResponse) {}
}
// The request message containing the user's name.messageHelloRequest {
stringname=1;
}
// The response message containing the greetingsmessageHelloResponse {
stringmessage=1;
}
result: java client convert method name to camelCase
client
server
result
go
go
Success
go
java
Success
java
java
java client: throw exception UNIMPLEMENTED : Method : greet not found of service:com.example.triple.service.GreeterService, maybe because java server return status is UNIMPLEMENTED(12)
java
go
go server: return error cannot find method [greet] of service [com.example.GreeterService] in dubbo
// The greeting service definition.serviceGreeterService {
// Sends a greetingrpcgreet(HelloRequest) returns (HelloResponse) {}
}
// The request message containing the user's name.messageHelloRequest {
stringname=1;
}
// The response message containing the greetingsmessageHelloResponse {
stringmessage=1;
}
result: go server convert method name to PascalCase, but serviceInfo still camelCase
client
server
result
go
go
go server: throw error: unknown method Greet for service com.example.GreeterService
go
java
Success
java
java
Success
java
go
go server: throw error: unknown method Greet for service com.example.GreeterService
The text was updated successfully, but these errors were encountered:
Environment
Issue description
Should the rpc method in the proto file be defined as PascalCase or camelCase?
No matter which one, go and java are currently unable to communicate with each other.
rpc method using
PascalCase
:result: java client convert method name to camelCase
UNIMPLEMENTED : Method : greet not found of service:com.example.triple.service.GreeterService
, maybe because java server return status isUNIMPLEMENTED(12)
cannot find method [greet] of service [com.example.GreeterService] in dubbo
rpc method using
camelCase
(not followed protobuf style guid):result: go server convert method name to PascalCase, but serviceInfo still camelCase
unknown method Greet for service com.example.GreeterService
unknown method Greet for service com.example.GreeterService
The text was updated successfully, but these errors were encountered: