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

How to call the Home Graph API with gRPC on Node.js

Given the protocol buffers definition available at: https://github.com/googleapis/googleapis/blob/master/google/home/graph/v1/homegraph.proto How can one call the Home Graph API RPC endpoint using gRPC on Node.js to multiplex concurrent API method…
proppy
  • 10,495
  • 5
  • 37
  • 66
0
votes
1 answer

How to redirect user to external link using gRPC

I want to ask if i can redirect user to external url using gRPC something similar to res.redirect('/ap1')
getspooky
  • 1
  • 1
  • 1
0
votes
1 answer

How does proto3 set the value of the map type

How to set the value of map type in static code? I have a map structure like this. message HelloRequest { Maps maps = 1; } message Maps { map formatMapChannelCount = 1; } message…
0
votes
1 answer

HTTP/2 flow control in Node.js (grpc-js)

How is HTTP/2 flow control implemented in the Node.js version of gRPC (grpc-js)? For the Go implementation (grpc-go), the logic is mainly in https://github.com/grpc/grpc-go/blob/master/internal/transport/ (flowcontrol.go, bdp_estimator.go); also,…
Marius
  • 3
  • 1
0
votes
1 answer

How can I use grpc's boringssl functionnalities to work with my nodejs program

I don't want to install another openssl when knowing Google gRPC has a working version of boringSSL. Now, my challenge is to be able to access some functionalities such as calculate a salt and CMAC. I am aware that Google does not promote the use of…
David
  • 1,241
  • 20
  • 36
0
votes
1 answer

How to send a request in node to an endpoint that uses grpc-web-proto?

I am trying to send an http request to this endpoint using the request library from npm, however, how would I send that payload as shown in the screenshot?
0
votes
1 answer

convert proto to ts file using grpc ts tools

I have a monorepo that is built using nxCloud. I have created a proto file in root directory inside a folder. The proto file is fine but since i need to import it in order to use its functions and for that purpose I need to convert it into ts file…
Ehsan Nissar
  • 643
  • 2
  • 13
  • 35
0
votes
1 answer

grpc Client-Streaming Java Client gets io.grpc.StatusRuntimeException: UNAVAILABLE: HTTP status code 503

I have a grpc Nodejs server behind a HAproxy and client-streaming rpc java maven. When I run the java client it return an error: io.grpc.StatusRuntimeException: UNAVAILABLE: HTTP status code 503 invalid content-type: text/html…
0
votes
1 answer

ngx GRPC error Failed parsing HTTP/2 expected 'P' (80) got 'O' (79) at byte 0

I have a GRPC server that is working just fine (tested using BloomRPC). and I have a front-end that is built with Angular and ngx-grpc. I am getting the followin error on the server side when sending a request from my grpc client. Any idea what is…
Saeid Farivar
  • 1,667
  • 24
  • 43
0
votes
1 answer

The package import path is different for dynamic codegen and static codegen

Here is the structure for src directory of my project: . ├── config.ts ├── protos │ ├── index.proto │ ├── index.ts │ ├── share │ │ ├── topic.proto │ │ ├── topic_pb.d.ts │ │ ├── user.proto │ │ └── user_pb.d.ts │ ├── topic │ …
Lin Du
  • 88,126
  • 95
  • 281
  • 483
0
votes
1 answer

compile file from file_pb.js to file.proto

I know how could I compile from file.proto to file_pb.js using this command: c:\protobuf\bin\protoc.exe --js_out=import_style=commonjs,binary:. .\file.proto But, how I can convert from file_pb.js to file.proto
John_123
  • 67
  • 8
0
votes
1 answer

gRPC-Node Error: Unexpected token u in JSON at position 0

So I keep getting this 'unexpected token u in JSON at position 0' error. I'm currently make a request from the main initiator which is making a gRPC request to customers gRPC server. When I don't containerize my files and manually npm install…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15
0
votes
0 answers

Dockerizing gRPC Server (Node) Issue: [Error: Failed to load gRPC binary module because it was not installed for the current system]

Whenever I run my docker image, I keep getting an error in terms of incompatibility between systems/architecture for node... I tried this command: npm rebuild --target=8.1.0 --target_platform=linux --target_arch=x64 --target_libc=glibc…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15
0
votes
1 answer

grpc-node: How to do Intra-service requests & are there any examples of intra-service requests?

Let's just say you have 2 services: Books and Customers. Let's say a customer wants to favorite a book. So the customer might make an gRPC request to the next service. How exactly can you make an RPC call from one service to another. This is the…
0
votes
1 answer

Are there any options for logging request times in grpc-node?

Are there any options for logging request times in grpc-node? I've been able to log response times using opentelemetry & jaegar (to display response times). I couldn't find any npm packages for this either, but just wanted to ask you guys if you did…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15