Hi, I am using gRPC on nodejs. I am able create a new client and call rpc methods successfully but after some time, it is throwing me 'Connection failed` error.
from *rpc-client.js *file import grpc from 'grpc' const package = grpc.load(PROTO_PATH).external.protocol const client = new package.CkPublic(url, grpc.credentials.createInsecure()) function executeCommand(request) { return client.executeCommand(request) } export default { executeCommand } from *another-file.js * file: import rpcClient from 'rpc-client.js' var stream = rpcClient.executeCommand(request); stream.on('error', ....) stream.on('data', .....) stream.on('status',....) -----done----- Error I am getting: > on status : Connect Failed > { Error: Connect Failed at ClientReadableStream._emitStatusIfDone (/rapid/node_modules/grpc/src/node/src/client.js:209:19) at ClientReadableStream._readsDone (/rapid/node_modules/grpc/src/node/src/client.js:177:8) at readCallback (/rapid/node_modules/grpc/src/node/src/client.js:237:12) code: 14, metadata: Metadata { _internal_repr: {} } } Can someone help me how to deal with this. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/de66cc9c-787c-4c54-bea4-0a692688873b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.