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

gRPC response not getting sent to client inside setTimeout when running in renderer process in electron

I am using the @grpc/grpc-js module and I have setup a sample gRPC server: When I run a gRPC server in electron, if I send a response after a "timeout", then the response is not going to the client at all. It's not closing the http2 stream properly.…
Natesh bhat
  • 12,274
  • 10
  • 84
  • 125
2
votes
1 answer

Node.js node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node

I was doing a proof of concept on gRPC using node.js Here is my package.json { "name": "grpc-node-demo", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" …
Madhu Tomy
  • 662
  • 11
  • 25
2
votes
0 answers

SBE protocol support in grpc/javascript

We are planning to use grpc for web ui and server communication. We also intend to use SBE as communication protocol. I have 2 questions in this regard Can we use SBE protocol with grpc instead of protobuf. Do we have support in…
2
votes
2 answers

Grpc-node: How to edit metadata in gRPC server and send back edited metadata to grpc-client?

Grpc-node: How to edit metadata and send back edited metadata to client? Below is currently what I have at the moment, and it seems like the metadata can be passed to the grpc-client RPC method ('greetmath'), but I can't edit the metadata in the…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15
2
votes
2 answers

GRPC - nodejs DNS resolution failed

I'm working with a GRPC service hosted with HTTPS and self-signed cert. When I connect using syntax like: const client = new productService('https://grpc-server-xxx.com:9090', grpc.credentials.createInsecure()) I am getting the error like this {…
Arjun Me
  • 61
  • 1
  • 3
  • 12
2
votes
0 answers

Error: 13 INTERNAL: Serialization failure (Usign Google Cloud Vision Api)

I am having this error after sending a Base64 of a photo taken in a react-native to vision api, I read in some places that the error must be in the grpc however, I am not using any of it directly, I am just using the structure vision api text…
Alifilho
  • 21
  • 4
2
votes
1 answer

Access multiple gRPC Services over the same Connection (with a single Channel)

Note that this is not a duplicate of a similar question for go, since this uses grpc-node. For some reason, there seems to be differences in the API I do the standard procedure of creating my APIPackageDefinitions and APIPackagePbjects, and create…
hyperupcall
  • 869
  • 10
  • 21
2
votes
1 answer

gRPC Server-Side Streaming: How to Continue Stream Indefinitely?

I am having an issue with a lightweight gRPC server I'm writing in NodeJS. I'm referencing the documentation here. I have been able to compile my proto files representing messages and services, and have successfully stood up a gRPC server with a…
ThePartyTurtle
  • 2,276
  • 2
  • 18
  • 32
2
votes
0 answers

Error when installing Grpc-js, recently, states `bug in node-pre-gyp install fall back...`?

Recent Error when trying to start up a project and install the node client for GRPC Command: npm install --save grpc > grpc@1.24.2 install C:\Users\pl73003\WebstormProjects\grpc\examples\node\node_modules\grpc > node-pre-gyp install…
Noah Kreiger
  • 121
  • 1
  • 7
2
votes
1 answer

gRPC, NodeJS, mTLS istio throws SSL error

So, we're working on a migration to istio for our clusters. Right now all our backend micro services talk over GRPC(grpc-node) with TLS enabled with our own certs. And it works great. However, whenever we bring the istio sidecar into play we get…
2
votes
2 answers

How can I receive data on client side before calling .end() on the server side for a gRPC stream

I am currently trying to setup a server stream with the gRPC Node.js API. For that I want to achieve that when I write on server side to the stream that the client immediately receives the data event. At the moment I don't receive anything on client…
Kilian Hohm
  • 320
  • 1
  • 7
2
votes
1 answer

node-pre-gyp install error on npm install

I was trying to follow the react in action book. - book's project repo But on doing npm install on Ubuntu, I am getting npm ERR! errno 1 npm ERR! grpc@1.7.3 install: `node-pre-gyp install --fallback-to-build --library=static_library` npm ERR! Exit…
Rupesh
  • 840
  • 1
  • 12
  • 26
2
votes
1 answer

Node: Unable to call continuation-local-storage key inside gRPC callback using express

I'm attempting to store an ID in continuation-local-storage so I can output it in the logs after a successful gRPC request. I create the namespace at the start of the app then set the ID in middleware (in the full implementation the ID will come in…
user285429
  • 303
  • 1
  • 4
  • 10
2
votes
1 answer

gRPC Node Server: how to load protobuf file from a different Git repo?

Background: we have multiple micro services maintained by different teams most of the services are written in Java. but there is one written in Node.js Node.js service interface is defined in .proto file and stored in the same repo as the Node.js…
xialin
  • 7,686
  • 9
  • 35
  • 66
1
vote
0 answers

gRPC module throwing error with Electron.js

I am trying to work with gRPC in my electron application but grpc module is not working after building the electron application. Initially I tried with grpc node module but it is deprecated recently. So I tried with @grpc/grpc.js module and it is…
Neha
  • 15
  • 4