Questions tagged [grpc-node]

grpc-node is a high-performance, open-source universal RPC framework for Node.js platform.

gRPC is an open source remote procedure call (RPC) system initially developed at Google. It uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, bidirectional streaming and flow control, blocking or nonblocking bindings, and cancellation and timeouts.

grpc-node repository

gRPC Node Quick Start

222 questions
0
votes
0 answers

How to check if the user is listening on gRPC async stream from server

I have a server which is supposed to stream a set of endless data to the web client when client subscribes to it using grpc-web but my problem is that the server continues sending data even after user goes to some other page and leaves the streaming…
0
votes
1 answer

Importing Custom Proto Files other than google's

Importing proto files from google such as Struct is pretty much straightforward as shown below: syntax = "proto3"; package messages; import "google/protobuf/struct.proto"; message UnaryRequest{ google.protobuf.Struct data = 1; } I would like…
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
0 answers

Class 'Error' defines instance member property 'cause', but extended class 'TwirpError' defines it as instance member function

I am importing our gRPC service into my package and when I run yarn to install everything I get the following error message node_modules/twirp-ts/build/twirp/errors.d.ts:28:5 - error TS2425: Class 'Error' defines instance member property 'cause',…
Orbita1frame
  • 203
  • 4
  • 13
0
votes
1 answer

Is there a performance overhead when manually serializing gRPC request & response objects

My goal is to send and receive data to/from a NodeJS microservice. The problem is that both my request and response objects are quite dynamic - fields with string | number union types, maps with a set of predefined keys and then some dynamic ones.…
fmi21
  • 485
  • 3
  • 15
0
votes
0 answers

GRPC SSL on Kubernetes with NodeJS client

I have a gRPC server running on my local mac perfectly with a self-signed certificate and I'm able to connect from the NodeJS client code as well as from the Postman gRPC client ( Beta ). But, when deploying the same service to Kubernetes with these…
0
votes
1 answer

Apply security in grpc client server node js

I am new to GRPC call, i created 1 server and client,now how to restrict other clients to connect my server i haven't tried any solution,because not know the best solution and i have limited time to appy solution so posting question
0
votes
1 answer

Why the service of grpc is undefined when i set configuration for kafka?

i'm trying to implement microservices with grpc and kafka but when i add both options in main.ts the client of grpc doesn't load on "onModuleInit" method this is my main.ts: async function bootstrap() { const app = await…
0
votes
0 answers

Node grpc client error: TypeError: _d.substring is not a function

I have encountered strange issue and I am unable to make a call to my grpc server from node. I am using: "@grpc/grpc-js": "^1.6.8", "@grpc/proto-loader": "^0.7.0", Node version: 16.14.2 npm version: 8.5.0 And im my client file: const grpc =…
misiu
  • 31
  • 3
0
votes
0 answers

Will gRPC automatically start supporting HTTP/3 protocol or will coders/developers have to make changes?

The question is self-explanatory. I'd like to ask if the libraries for C++, Python, etc. will of gRPC will automatically use HTTP/3 once it's introduced?
0
votes
0 answers

gRPC example, Received RST_STREAM with code 0

I was just trying out grpc. I made a simple client and server both with nodejs The proto file: syntax = "proto3"; message Empty {} message EchoRequest { string message = 1; } message EchoResponse { string message = 1; int32 message_count =…
IsolatedSushi
  • 152
  • 2
  • 10
0
votes
0 answers

NestJS gRPC Cant connect to microservice

When i trying to call some method from service im getting "Error: 14 UNAVAILABLE: No connection established" Code in some module: imports: [ ClientsModule.register([ { name: 'UsersService', transport:…
requiemDev
  • 1
  • 1
  • 1
0
votes
1 answer

NestJS - Grpc client: RpcException from server is serialized to an Error instead of RpcException

I've been at this all day and can't seem to find a solution,please help :) The service communication works, the issue is with the error handling... Scenario: Service-A is invoked via HTTP. (probably not relevant but just in case) Service-A calls…
Samion
  • 85
  • 1
  • 5
0
votes
1 answer

Node gRPC returns "No status received" when deployed on Cloud Run with Docker

After deploying my server on Cloud Run, calling the endpoint with BloomRPC or other clients, the service returns "error": "2 UNKNOWN: No status received". Calling the server locally with PORT=7000 node index.js on localhost:7000 works fine. I guess…
antipopp
  • 409
  • 1
  • 3
  • 14
0
votes
1 answer

Using Auth0 with NestJS on gRPC Methods

I am trying to implement NestJS Guards for Authentication and Authorization to my gRPC Services, which are implemented in NestJS. @GrpcMethod(USER_SERVICE_NAME, 'GetUser') private getUser(req: GetUserRequest): Promise { return…
0
votes
1 answer

Envoy GRPC Reverse Bridge - Received RST_STREAM with code 0

I am trying to access HTTP1.1 rest API via GRPC client, through Envoy GRPC Reverse bridge. But when I test it I get the below error. Any help or sample code snippet would be much appreciated. Thanks! Error: 13 INTERNAL: Received RST_STREAM with code…