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

gRPC: From Node Js, How to send Array of float by using repeated bytes of protobuff to python

I would like to send a list of float list via nodejs and receive it in python using protobuff's repeated bytes type. The graph helps to understand the problem: I tried with this configuration and what I get on the python side is not really what I…
0
votes
0 answers

grpc.credentials.createSsl(root_cert) is resulting in Error: 14 UNAVAILABLE: No connection established in grpc-node.js

var root_cert = readFileSync(__dirname + '/credentials/localhosttest.cer'); var client = new PSC_PatientProto.service(target,grpc.credentials.createSsl(root_cert)); the above code is resulting in the below error error in call Error: 14…
Swathi
  • 1
  • 2
0
votes
1 answer

grpc/grpc-js: Empty request received at the backend service from client

@grpc/grpc-js: ^1.3.3 Node.js: v14.17.3 Client.js client.updateBillingItems(request, function(err, response) { if (err) { res.send({error:'Server failed to update billing item'}); } else { …
0
votes
0 answers

grpc client in docker can't reach server on host

I have a node grpc-server running on localhost and my grpc-client is a python flask server. If the client also runs on localhost directly then everything works as intended. Once I host the client(flask server) in a docker-container it is unable to…
David
  • 116
  • 2
  • 10
0
votes
1 answer

Getting empty response from gRPC call

I have a simple gRPC server and client. The server and client are working fine (I assume since I am getting a response and no error). However the response is empty which I have no idea why. Here is the proto message.proto syntax = "proto3"; message…
HARDY8118
  • 622
  • 7
  • 15
0
votes
1 answer

GRPC intermittent connection, read ECONNRESE error

Unfortunately i cannot provide much code due to the nature of the programme (not owned by me). I have an issue where I have 9 microservices all written with NestJs these microservices work fine locally however when i deploy them to a live network…
Jay P
  • 596
  • 7
  • 23
0
votes
2 answers

RxJS Waits until Subscribe Observable Finish

I'm trying to implement gRPC with NestJS and use RxJS Observerable for handling server streaming. On the code below I try to put value from observable to results array. The function findAllRepos return empty list while the console.log(value) in…
fahmiduldul
  • 924
  • 7
  • 18
0
votes
0 answers

Getting gRPC Metadata in NestJS from Client

I would like to be able to read gRPC metadata when making a unary call with the gRPC client. Currently this is already possible with StreamCalls' which is also properly documented, but I can't figure it out with Unary Call's Consider the following…
Mazzy
  • 1,901
  • 2
  • 16
  • 36
0
votes
1 answer

Async/Await not working as expected with gRPC method

this is the code to initialize a gRPC server I am using: export const initServer = async (finalPort: number): Promise => { let initStatus = 'initial'; gRPCserver.addService(webcomponentHandler.service, webcomponentHandler.handler); //…
Datenshi
  • 59
  • 1
  • 9
0
votes
1 answer

Unresolved HTTP2 dependency in grpc-js for bidirectional RPCs

So I'm creating a client for chatting application using grpc and vue-cli client. My proto file looks like this: syntax = "proto3"; package chat; option go_package = "backend/proto"; message ChatMessage { string msg = 1; } service ChatService…
0
votes
1 answer

How to load remote proto definitions using proto-loader in NodeJS

Url for RPCs is flow-testnet.g.alchemy.com:443 I don't have any .proto files locally. How do I load them to generate package definitions?
0
votes
0 answers

Unable to Connect to GRPC Server Deployed on Heroku

I am having a really difficult time communicating with a gRPC Server that I deployed on Herkou. Here is how I am listening on the gRPC Server with NodeJS: server.js init() { let grpcServer = new grpc.Server(); …
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
0 answers

SocketConnectException when connecting to GRPC Server

I built a GRPC Server in NodeJS, Generated the Client Libraries for Dart and then Deployed the Server on Heroku. When I tried connecting to the GRPC Server by Proividing the url as https://api.appname.come and provided the PORT Number From the Dart…
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
1 answer

Nest+GRPC proto file response structure

i'm using nest and GRPC microservice to build my backend. so first i have created rest api and now i'm converting it to GRPC call. so my api response is as follows: { "data": { "2-2-2-2": [ //id [ 24.942795, …
Jay Desani
  • 11
  • 2
0
votes
1 answer

Persistently receiving 14 UNAVAILABLE: Stream refused by server. Create BigTable client per-request?

It's happening daily an only on our save operation: // the record is this small and `myValue` is a sting < 32 characters in length. const rowToInsert = { data: { myKey: { value: `${params.myValue}` }, }, }; await…
AJ Venturella
  • 4,742
  • 4
  • 33
  • 62