[gRPC] Loader option causes ClientGrpc.getService fail
See original GitHub issue(node:1600) UnhandledPromiseRejectionWarning: TypeError: Channel options must be an object with string keys and integer or string values
The message is pretty clear on what causes it. Right now my workaround is removing loader
attribute before passing it to the constructor.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Basics tutorial | Node
A basic tutorial introduction to gRPC in Node. Contents. Why use gRPC? Example code and setup; Defining the service; Loading service descriptors ...
Read more >NestJS - Grpc client: RpcException from server is serialized ...
If anyone stumbles across this, It is now possible to add an error serializer when creating the ClientProxy like so:
Read more >gRPC - Microservices | NestJS - A progressive Node.js ...
The gRPC transporter options object exposes the properties described below. ... Then we use the ClientGrpc object's getService() method to retrieve the ...
Read more >API with NestJS #20. Communicating with microservices ...
We also want to use the package keyword with a name. We will later refer to it when setting up gRPC with NestJS....
Read more >NestJS Microservices - 4 - Using gRPC - YouTube
gRPC TypeScript Generator: https://github.com/improbable-eng/ts-protoc-genProto Files: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @dzzzzzy. Looks like only the Client throws an exception when
loader
option is passed. Just published 5.3.7 fix 😃same error:
@kamilmysliwiec hello kamil, the loader options can not work on
@Client
with grpc, could you give me some help?