1)Generate Test Utility binary from the attached main.go to create grpcserver.exe.
go install ./...
2)Run the Server using the below command:
grpcserver -server
3) Build the Mashling gateway from master and run the gateway with the attached configuration grpc-to-grpc.json.
./grpc-proxy-gateway -c grpc-to-grpc-gateway.json
4)Run the clients using the command
grpcserver -client -port 9096 -method pet -param 2 -number 200
The below gateway logs are seen:
2018-09-24 11:48:14.807 ERROR [tibco-service-grpc] - Propagating error to calling function
2018/09/24 11:48:14 response: pet:<id:2 name:"cat2" >
2018-09-24 11:48:14.807 ERROR [tibco-service-grpc] - Error Details: rpc error: code = Unavailable desc = transport is closing
Note:The GRPC client is being stopped with the same error.rpc error: code = Unavailable desc = transport is closingattachments.zip
1)Generate Test Utility binary from the attached main.go to create grpcserver.exe. go install ./... 2)Run the Server using the below command: grpcserver -server 3) Build the Mashling gateway from master and run the gateway with the attached configuration grpc-to-grpc.json. ./grpc-proxy-gateway -c grpc-to-grpc-gateway.json 4)Run the clients using the command grpcserver -client -port 9096 -method pet -param 2 -number 200
The below gateway logs are seen: 2018-09-24 11:48:14.807 ERROR [tibco-service-grpc] - Propagating error to calling function 2018/09/24 11:48:14 response: pet:<id:2 name:"cat2" > 2018-09-24 11:48:14.807 ERROR [tibco-service-grpc] - Error Details: rpc error: code = Unavailable desc = transport is closing
Note:The GRPC client is being stopped with the same error.rpc error: code = Unavailable desc = transport is closing attachments.zip