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

Nestjs Grpc Graphql Error: this.. is not a function

Hope you'll doing great I'm trying to create a gateway for a Grpc service built with Nestjs and it's running correctly but I can't make the gateway connect to it, I read the documentation and follow the exact instruction there but still i got the…
0
votes
1 answer

fabric-gateway on node.js takes 4 minutes to complete fail or success

I'm trying to migrate from fabric-network to fabric-gateway, in largely due to experiencing an issue with fabric-network where hundreds of connections are left open and eventually clog the server. I've read this is not that uncommon and that a…
Matias Salimbene
  • 510
  • 6
  • 19
0
votes
1 answer

How to generate the Typescript files from proto files?

I'm attempting to generate some Typescript files for a React project that would utilize gRPC through proto files. I ran a script: #!/bin/bash IN_DIR="./protos" OUT_DIR="./dist" # Generate the types yarn proto-loader-gen-types \ …
dokgu
  • 4,957
  • 3
  • 39
  • 77
0
votes
1 answer

Can't resolve module clarifai-nodejs-grpc in React JS

Error Module not found Can't resolve 'clarifai-nodejs-grpc' node module grps-js and proto-loader I tried config-overrides.js with react-app-rewired: module.exports = function override(config, env) { console.log("override"); let loaders =…
NePa
  • 13
  • 3
0
votes
0 answers

send jsonlogic through grpc

everyone, I need to send jsonlogic object through gRPC, so I cannot understand how to build a message that can contain property with dynamic keys, and dynamic types of that keys value. message JSONLogic { string somePropperty = 1; ???…
0
votes
0 answers

Nestjs gRPC with struct

How we can use gRPC struct type in nestjs to fetch an object. here is my .proto file message WorkSpaceRequest{ string number = 1; } message WorkSpaceResponse{ google.protobuf.Struct workspace=1; } and in the controller, we are using grpcMethod to…
Suraj Dalvi
  • 988
  • 1
  • 20
  • 34
0
votes
0 answers

GRPC server streaming, how to increase server ping time

Am working on a project using GRPC which has a node js server and client is Android written in Kotlin. We are able to setup the connection and the server streaming works as expected. The problem we are seeing is the server is pinging to client every…
user
  • 87
  • 8
0
votes
1 answer

Is there any way to use Pipes with Grpc in Nestjs?

So I'm building an httpgateway which sends messages to a microservice made with nestjs/grpc. Problem is that, once I decorate my controller with @UsePipes(....) it throws an error for the gateway. I tried to log data entering into pipe and found out…
Rafael
  • 11
  • 3
0
votes
0 answers

GRPC with JavaScript Client?

Hello I m trying to find ref for GRPC with JavaScript Client. I checked tried to search but is generally refer Node Library. In my implementation I have .NET GRPC server and have react UI app so just want to check is GRPC client support JavaScript…
0
votes
1 answer

NestJS - gRPC Client E2E Test

I am trying to write an e2e test for my NestJS microservice that has a gRPC client. No matter what I do to try and mock the ClientsModule in the e2e test it still seems to not pick up the config and is unable to locate the *.proto file. Please find…
mh377
  • 1,656
  • 5
  • 22
  • 41
0
votes
1 answer

Install gRPC tools for node on linux/arm64

Unable to install grpc-tools for node on linux/arm64. Steps to reproduce, with Dockerfile like FROM node:latest RUN apt-get update \ && apt install -y curl ca-certificates curl gnupg \ && npm -g install grpc-tools CMD […
Kamesh
  • 115
  • 11
0
votes
1 answer

grpc nodejs where to put retrypolicy

referencing https://github.com/grpc/proposal/blob/master/A6-client-retries.md it is not clear where the retry policy is actually placed or referenced, is it part of protoLoader.loadSync(PROTO_PATH, { keepCase: true, longs: String, …
art vanderlay
  • 2,341
  • 4
  • 35
  • 64
0
votes
0 answers

Method implement error between 2 grpc microservices in nodejs

I have 2 gRPC microservices. I want to use one of these 2 microservices as a client and the other as a server and exchange data between each other. However, while the server microservice is reaching from my client microservice, code: 12, details:…
0
votes
1 answer

setting up a grpc typescript client

I am trying to setup a GRPC client to communicate with my goLang backend. The server is setup but I am having a lot of issues setting up the Client. I found a decent example here But I am still not able to declar my client server. This was my…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
0
votes
0 answers

Calling nestjs gRPC service on AWS ECS Fargate, Connection not established

I have 2 nestjs microservices deployed to the AWS ECS(Fargate). Service A exposes HTTP endpoints and works as gateway, and service B is using gRPC with nestjs. Service A calls service B gRPC API. I’ve deployed both services on AWS ECS (Fargate) and…