An improved Node.js gRPC client that provides promisified request/response calls and automatic Metadata creation from plain JavaScript objects. Current stable version 0.3.13. The module wraps standard gRPC client calls, allowing use with async/await and callbacks, and simplifies stream handling. It uses grpc-create-metadata to automatically convert plain objects to gRPC Metadata. Alternative to raw gRPC-js client with easier async patterns.
npm install andela-grpc-callerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of grpc-caller to create a client and make a promisified RPC call with async/await.
Migrate to '@grpc/grpc-js' and consider using '@grpc/proto-loader' directly with promisification or use a wrapper that supports the new package.
Use explicit Metadata instance when custom handling is needed, or avoid keys that are reserved by gRPC Metadata.
For client streaming or bidi streaming, use standard gRPC client methods or manually promisify.
If relying on previous behavior where Metadata was fully replaced, upgrade with caution.
Use 'grpc' package or choose an alternative that supports '@grpc/grpc-js'.
Run npm install grpc to install the deprecated gRPC package.
Verify the PROTO_PATH and service name. Ensure the protobuf file defines the correct service and RPC method.
Check that the gRPC server is running and the host:port is correct. Validate the proto file path.