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
3
votes
1 answer

Expected directory: node-v83-linux-x64-musl. Found: [node-v72-linux-x64-musl]

Grpc version: 1.24.2 When deploying my Node.js app I have a problem with the binary file for grpc package. Error: Error: Failed to load gRPC binary module because it was not installed for the current system Expected directory:…
Arthur
  • 3,056
  • 7
  • 31
  • 61
3
votes
1 answer

Getting `Error: 8 RESOURCE_EXHAUSTED: Received message larger than max (15217288 vs. 4194304)` in Node.js gRPC client

How to increase max message size for Node.js gRPC client? We use grpc, grpc-tools and protobufjs npm-packages: const packageDefinitions = loader.loadSync(PROTO_PATH, { includeDirs: [__dirname], longs: String, arrays: true }); const packageObject…
razon
  • 3,882
  • 2
  • 33
  • 46
3
votes
1 answer

GRPC Golang Server and NodeJS client. TLS connect failed

Everything works fine when I don't use TLS. But when I do, it does not connect. More details: I have configured the Golang GRPC server exactly like how this blog says https://bbengfort.github.io/programmer/2017/03/03/secure-grpc.html in Mutual TLS…
Tjs
  • 843
  • 10
  • 17
3
votes
2 answers

gitlab-ci build fails for grpc

My node.js build stopped working on the gitlab-ci servers 2 days ago. And I don't really understand why. Some more info: The package.json file has not changed when the ci build stopped working Even older ci-builds that were okay some days ago,…
TmTron
  • 17,012
  • 10
  • 94
  • 142
3
votes
1 answer

gRPC failure, when executing chaincode on Hyperledger Fabric Blockchain on multiple nodes

I would like to run my own hyperledger blockchain on multiples nodes. I have the following setup: My Ubuntu PC is hosting one orderer, peer, couch db, CA server. My Raspberry Pi (running Ubuntu Mate) is hosting: one peer and couch db. The both nodes…
3
votes
1 answer

Google GAX / gRPC in Node.js Does Not Work With HTTP/S Proxy

I am trying to get Dialogflow SDK samples from Google's Dialogflow v2 Node.js SDK to work. I am using node.js v8.10.0, with dialogflow node.js SDK version 0.5.0. I am encountering this issue when trying to run the "Detect Intent" sample, from…
mephicidex
  • 41
  • 4
2
votes
2 answers

Compiled Typescript files from gRPC proto files mark every property as optional

I have a bunch of proto files that I compiled to Typescript with the following script: yarn proto-loader-gen-types \ --grpcLib=@grpc/grpc-js \ --outDir=${OUT_DIR} \ ${IN_DIR}/*.proto One of the messages defined is Bool: message Bool { …
dokgu
  • 4,957
  • 3
  • 39
  • 77
2
votes
0 answers

gRPC nodejs client can't send request to server because of serialization failure

I'm currently working on implementing a gRPC nodejs client that should communicate with a java/kotlin gRPC server to test out the cross language codegen. However when I try to make a call from my nodejs code I get a serialization failure and I have…
J.Pip
  • 4,523
  • 7
  • 31
  • 49
2
votes
1 answer

What is the recommended way to do a grpc call from inside a Typescript Vue.Js component?

After reading the documentation of grpc I see proto files can generate Node (Javascript), Typescript with plugin grpc_tools_node_protoc_ts and grpc-web. Since performance is not critical in my case I can load the .proto files with proto-loader. What…
barrelful
  • 23
  • 4
2
votes
0 answers

@firebase/firestore: Firestore (9.10.0): Connection GRPC stream error. Code: 13 Message: 13 INTERNAL: Received RST_STREAM with code 0

I have the following onSnapshot listener, and it is listening for a new document in a certain collection to post updated to a discord channel upon a new listing is added, once upon adding a new listing it shows on the website correctly and…
Zero
  • 2,164
  • 1
  • 9
  • 28
2
votes
2 answers

How to import proto file in another proto file in NestJS

I've come across the need to import one file into another, but I can't find a clear explanation of how to do it. So, I have my index proto file using some message from common.proto. All proto files lie in the same directory. index.proto: syntax =…
wh4y
  • 33
  • 1
  • 5
2
votes
1 answer

NestJS GRPC Error: call.sendMetadata is not a function

I'm trying to send a metadata from the server side gprc using NestJS framework. On the official NestJS guide here: it shows a example of doing the server side grpc metadata: @Controller() export class HeroesService { @GrpcMethod() …
Zichzheng
  • 1,090
  • 7
  • 25
2
votes
2 answers

How to add multiple services in grpc-js server?

Lets say I have .proto file like below: service SvcOne{ rpc MehtodOne(RequestOne) returns (ResponseOne) {} } service SvcTwo{ rpc MethodTwo(RequestTwo) returns (ResponseTwo) {} } message RequestOne { string field_req= 1; } message…
Bram
  • 25
  • 7
2
votes
1 answer

GRPC client using with node js facing issue

I am facing an issue when I am trying to create a grpc client call using node js. when I use import "google/api/annotations.proto" in proto file I get an below error. if I remove it it works file. May I know what I am missing from my…
nagaraj
  • 797
  • 1
  • 6
  • 29
2
votes
1 answer

how to use grpc proto type Struct in nest.js

hey i am trying to implement nest js microservice with grpc. it looks impossible to use nestjs microservice with struct type for plain objects. how can i use compiled protos with nestjs ? imports: [ ClientsModule.register([ { name:…
user8987378
  • 182
  • 1
  • 2
  • 17
1 2
3
14 15