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
1
vote
1 answer

proto-loader unable to load .proto file with dependencies

I'm trying to load .proto files coming from the arduino-cli repo. More specifically, I'm loading the commands.proto that has a dependency on a few other .proto files within the same directory. In the load options provided to proto-loader, I…
HervéSV
  • 27
  • 1
  • 5
1
vote
1 answer

gRPC-node: When *Dockerizing* Service, request doesn't go through service's server? [Screenshots included]

I created a really simple bookstore with a Books, Customer, and a main service. This particular problem involves the main and books service. I'm currently making a gRPC request called: "createBook", which creates a book in our DB, and also console…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15
1
vote
1 answer

Docker: How to access files from another container from a given container?

Basically I have a main directory and Books Directory (General file structure, there's more but these are the important pieces). So when I fire a request from main to booksServer, it doesn't work because the node modules are missing. That's because…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15
1
vote
1 answer

Unable to connect GRPC microservice with client - Nest JS Node on k8s

I'm currently stuck with connecting clusterIp services in kubernetes. The main goal is to connect one pod (microservice) using grpc and other pod (client) using node . I'm using the service name to expose and connect to the microservice…
1
vote
1 answer

Is it possible to use http transcoding (to grpc) without google cloud platform? (node-grpc)

Sorry for the basic question (I'm new with gRPC). Is it possible to use http transcoding without google cloud platform & endpoints? (Referring to this article: https://cloud.google.com/endpoints/docs/grpc/transcoding) I'm currently trying to create…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15
1
vote
1 answer

How to set oneof fields in node grpc

How do you use oneof fields in a grpc node? I am using dynamic code generation. I tried to modify the quickstart with service Greeter { rpc SayHello (HelloRequest) returns (HelloReply) {} rpc SayHelloOneOf (OneOfRequest) returns (HelloReply)…
user2133814
  • 2,431
  • 1
  • 24
  • 34
1
vote
1 answer

How to encode messages with “map” using google-protobuf in JavaScript? (protocol buffers)

I wanna ask that how to encode (serialization) Map Fields. According to the google guide, "JavaScript Generated Code" contains the following function for Map Fields. The decoding function (getFooMap()) is generated. But I couldn't find the encoding…
justin
  • 13
  • 1
  • 3
1
vote
1 answer

How to stream bytes using gRPC in Nodejs?

New to gRPC, I'm trying to stream a video file using grpc, both client and server are in Node, when running the service, I can console log the buffer on the server side, however I can't get anything from client side, Could anyone help me out,…
Ethan Wang
  • 85
  • 2
  • 11
1
vote
1 answer

how to get client IP address with node grpc

Earlier I used below code to get the client IP on express.js req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress would like to know what is the way to get IP of client…
1
vote
1 answer

Why does my Node.js gRPC client take 3 seconds to send a request to my Python gRPC server?

Let's begin by acknowledging that I am a gRPC noob. If I've asked a stupid question, go ahead and let me know, but only after explaining why it's stupid. Thanks! :) Overview I am developing an application that processes images. The variables that…
Question Asker
  • 199
  • 2
  • 18
1
vote
1 answer

web gRPC + NGINX TLS configuration

I have a Node gRPC server and an web gRPC client (TS with Angular). I am using Nginx as a proxy to facilitate communication between them. I don't know how to configure the web gRPC client (TS) with SSL. I tried using my current Nginx config and Node…
1
vote
0 answers

Error Deploying gRPC with node on a Google Cloud Function

I'm trying to deploy the Google Assisant SDK in Node.js to a Google Cloud Function but running into this error.. Deployment failure: Function failed on loading user code. Error message: Code in file index.js can't be loaded. Did you list all…
Ray
  • 325
  • 4
  • 15
1
vote
0 answers

Using the response from bidirectional streaming callback in Node.js gRPC client

I have a grpc server that is written in Go and runs on a unix domain socket. I'm writing a nodeJS client for for this. Since grpc-node doesn't support unix sockets, i had to use @grpc/grpc-js. Now the issue i'm facing is that I need to perform some…
1
vote
1 answer

Node JS: Will a Bidirection GRPC Call Open Multiple http2 Connections?

Will a bidirectional RPC call ever open multiple http2 connections? I'm writing a GRPC client that's talking to a GRPC server I don't own/control. I'm using the @grpc/grpc-js package. I've been asked whether this library will open multiple HTTP2…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
1
vote
1 answer

How to define a gRPC service that handles any call?

I'm trying do some reverse engineering trying to understand what services are called among several .proto files. My question is if it's possible to implement a service on the server that handles all the call made and gives me the information of…