Questions tagged [grpc-web]

gRPC-Web provides a JavaScript library that lets browser clients access a gRPC service.

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-Web Repository

gRPC-Web Documentation

217 questions
21
votes
5 answers

protoc-gen-js: program not found or is not executable

Trying to compile my protos - I need to compile them to use in my react app. But I get this error. I run the command as follows: cd src/main/proto && protoc -I=. *.proto --js_out=import_style=commonjs:.…
Asma Rahim Ali Jafri
  • 1,173
  • 2
  • 15
  • 22
15
votes
1 answer

How to parse HTTP message from another node to a gRPC server

I could successfully run a gRPC client and gRPC server in c++ now I wish to establish a communication between node A and gRPC server i.e. node B as in the attached image. Are there any examples which I can refer to below is what I am looking for. I…
Vinay Shukla
  • 1,818
  • 13
  • 41
12
votes
5 answers

GRPC web client with angular 6

I have worked with grpc .net client and a grpc server created with java, how can i implement grpc web client on angular 6 with typescript? Also how can i create proto files and it's typing's for typescript? I am following this repo but not able to…
Asad Shah
  • 771
  • 2
  • 8
  • 22
10
votes
4 answers

How to use typescript protobuf generated files in a gRPC angular application

Summarize the problem I'm learning how to use gRPC, and wanted to try to do a client-server connection. The server (in Elixir) works, though I had a few problems. But as I am mainly a back end developer, I have way more troubles with implementing it…
Aridjar
  • 301
  • 1
  • 5
  • 14
10
votes
1 answer

Why is envoy proxy required for grpc-web?

If the browser supports http/2, why does grpc-web require envoy proxy? Is it just required for older browsers that do not support http/2?
Deep Vora
  • 318
  • 3
  • 13
9
votes
1 answer

Protobuf message from JSON in javascript

In python/C#/C/Go/... generated code it is possible to create a proto message instance from JSON. E.g. in Python where you can just do google.protobuf.json_format.Parse(json, message). I would expect the [JavaScript generated code (here and here) to…
Berco Beute
  • 1,115
  • 15
  • 30
9
votes
0 answers

Securely exposing a gRPC service with authentication using gRPC-web

We are using Improbable's gRPC-Web library to expose a gRPC service (implemented in Go) to a Javascript client running in-browser. This service will sit alongside an existing front-end Go service which hosts a REST-based API. The existing service…
Cosmic Ossifrage
  • 4,977
  • 29
  • 30
9
votes
3 answers

Why do browsers not support gRPC?

gRPC is based on HTTP/2, which (assumption) is widely supported by browsers. Therefore, I feel there should be no problem with gRPC from a browser. However, it is clear that there is a problem. The protocol, grpc web, is different, as exists "due to…
tonicsoft
  • 1,736
  • 9
  • 22
8
votes
2 answers

How to get gRPC working between a Unity game client (c#/.NET) and Tonic (rust) based server

So I have a gRPC server written in Rust using the Tonic crate. I have all the proto files written and I can make requests using a Tonic based client and grpcurl so there are no issues on the server side. I have a Unity 3D based game which I want to…
Sean Dawson
  • 5,587
  • 2
  • 27
  • 34
8
votes
1 answer

ASP.NET Core grpc-Web on IIS returns 404

.NET Core gRPC-Web client calling ASP.NET Core gRPC-Web server on http://localhost:5000 works fine. Same client code calling server deployed to an IIS server with a virtual application (e.g., "http://build.mycompany.ca/myapp") results…
Vince
  • 617
  • 8
  • 18
8
votes
2 answers

How to use grpc-web without envoy

I am playing with grpc & grpc-web. I was able to run a simple grpc server and grpc-web applications. However I feel like the setup requires too many dependencies web-server, grpc-server and envoy proxy. Is anyone successfully using grpc-web for…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
8
votes
2 answers

How to use grpc-web in vue?

I am trying use grpc-web client in my vue application as follows: import Vue from "vue"; import App from "./App.vue"; const { Registration, _ } = require("./identity-service_pb.js"); const { IdentityServicePromiseClient } =…
softshipper
  • 32,463
  • 51
  • 192
  • 400
7
votes
1 answer

Angular Universal with GRPC

Im having issues with setting up GRPC inside Angular Universal App. Basically, it throws an error: ERROR Error: This environment's XHR implementation cannot support binary transfer. This error is breaking the application on production (hosting it…
Vulovic Vukasin
  • 1,540
  • 2
  • 21
  • 30
7
votes
2 answers

How to use async/await pattern with gRPC Web?

I'm developing a Vue.js web application and I'm using gRPC to assure the communication. In the frontend, I'm using the web version of gRPC: grpc-web. Everything is working just fine; however, when I'm doing an API call in my store, e.g.: async…
Bastian Nanchen
  • 672
  • 1
  • 13
  • 24
7
votes
2 answers

How to architect a react-redux app with grpc-web?

I have a react-redux app and my team uses grpc-web. I'm wondering - what's the best way to design such system? For now the plan is to create 3 abstraction levels: API module - promisified wrappers around grpc-web clients Redux thunks level - async…
emil14
  • 71
  • 5
1
2 3
14 15