Calling a GRPC method that does not take any parameter goes fine. But, when I try to call a method with parameter, string and bytes. For the string i get the following error:
“GoError: unable to serialise request object to protocol buffer: proto: syntax error (line 1:10): unexpected token “test@email.com””
` // creating client and loading protos followed by following function:
export default () => {
client.connect(‘localhost:9000’, {plaintext: true});
Please share the protobuf definition of mypackage.myservice/GetUserInfo, including its parameter and result types. We can’t really help you without that, this error basically means that the JS object you passed client.invoke() can’t be transformed to the protobuf data the server expects.
I have reworded the proto, but there are other endpoints from the same proto files that dont require input data, and they work fine. However when I pass data to GetUserInfo I receive the error I mentioned earlier.
The following proto lives inside framework/typesRepo: