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
4
votes
0 answers

Cancel grpc call from client on server streaming

I am using nodejs grpc server streaming to deliver realtime data from server to the clients. As the clients want to listen to the data, they should call a server function which returns a server stream. Then if the client want to end the listening I…
4
votes
1 answer

gRPC Node Js client: "Method not found"

I have a gRPC server implemented in python and I am calling an RPC from NodeJS but it gives an error "Method not found". When I call using the python client, the request is successful. stream_csv.proto syntax = "proto3"; package csv; service…
D14TEN
  • 337
  • 6
  • 15
4
votes
1 answer

Confused about health checking protocol

I have read below doc, source code and issue: https://github.com/grpc/grpc/blob/master/doc/health-checking.md https://github.com/grpc/grpc-node/blob/master/packages/grpc-health-check/test/health_test.js https://github.com/grpc/grpc/issues/10428 I…
Lin Du
  • 88,126
  • 95
  • 281
  • 483
4
votes
1 answer

How to call a grpc service running on ec2 from aws lambda

I have a grpc service, written in python, deployed on one EC2 instance. I have written a nodejs application and using the application, I am able to call the grpc service from my local machine, and also from another EC2 instance. However when I…
24x7Programmer
  • 474
  • 5
  • 20
3
votes
1 answer

Node.js GRPC call to another microservice throwing "CANCELLED: Call cancelled" error

We are using Node.js, Docker Swarm, and GRPC to deploy multiple microservices. One of our microservices is a GRPC service that handles websockets for our frontend. However, when we make a GRPC call to this service from another microservice (Our…
Nishantc7
  • 41
  • 2
3
votes
1 answer

Using Google Cloud Tasks with an Emulator

I am attempting local development with Google Cloud Tasks. I am able to enqueue a task to Google Cloud, but I'd like to use an emulator for local development. I have found…
Brian
  • 3,571
  • 7
  • 44
  • 70
3
votes
1 answer

How to cancel a server side streaming gRPC call from client side in NodeJS?

I have a gRPC server that streams data for an indefinite amount of time. It spawns a child process that retrieves some hardware resources stats. What I want is to cancel the gRPC call from the client so that I can kill the spawned process. Another…
Bogdan Boamfa
  • 395
  • 2
  • 18
3
votes
2 answers

Firebase Functions Initial Hello World Doesn't Compile in TS

I have an existing webapp project hosted in Firebase, and I want to add cloud functions to it. But when I just functions with the command firebase init functions the initial hello-world template it generates doesn't compile in TypeScript because of…
3
votes
0 answers

Receiving RST_STREAM with error code 2 while using grpc secure channel

We are using grpc to communicate between services. For production deployment, we switched to server authentication. We have a bi-directional streaming grpc service - which expects audio chunks in streaming fashion & sends transcripts as responses in…
Riya Shah
  • 41
  • 4
3
votes
1 answer

Next.js grpc-node usage

I use gRPC but I have a problem initializing the service in Next.js app. Goal: Create client service only once in app and use it in getServerSideProps (app doesn't use client-side routing). For example, we have a service generated with grpc-tools…
Arthur
  • 3,056
  • 7
  • 31
  • 61
3
votes
1 answer

How do I connect to GRPC using TLS?

I'm trying unsuccessfully to get a basic GRPC server and client working with SSL/TLS, with a node client and Java server. Starting with no security: // client.js const creds = grpc.credentials.createInsecure() const stub = new…
Sasgorilla
  • 2,403
  • 2
  • 29
  • 56
3
votes
3 answers

TypeScript / JavaScript gRPC google.protobuf.Struct cannot be read

I have a TypeScript server trying to read a JSON object using a Struct but it seems to be partially working only for objects containing a "fields" key which then expects an object as value. Nonetheless, a Struct should work with any JSON…
Va5ili5
  • 749
  • 8
  • 20
3
votes
0 answers

nodejs + grpc-node server much slower than REST

I have implemented 2 services A and B, where A can talk to B via both gRPC (using grpc-node with Mali) and pure HTTP REST calls. The request size is negligible. The response size is 1000 items that look like this: { "productId": "product-0", …
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
3
votes
2 answers

Get data from observable grpc service in nestjs,

I want to use gRPC service to communicate between my microservices. but when getting a response from Grpc service, before return a method, I want to do some modification and functionality. sample project: …
Omid Mamandi
  • 83
  • 2
  • 7
3
votes
2 answers

GRPC-Web connectivity issue in TLS

I have a GRPC Web client and a GRPC Server and I am using envoy proxy from the conversion of HTTP 1.1 to HTTP2. My server creation Logic uses TLS. The code is as follows: var opts []grpc.ServerOption creds, err :=…
Anshu Kumar
  • 807
  • 1
  • 8
  • 27
1
2
3
14 15