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
3
votes
0 answers

Custom URL Parameter in gRPC-Gateway Transcoding

for example, I have this kind of proto definition: service Greeter { rpc SayHello (HelloRequest) returns (HelloReply) { option (google.api.http) = { get: "/hello" }; } } message HelloRequest { repeated int32 ids = 1; …
dkiswanto
  • 192
  • 1
  • 2
  • 12
3
votes
1 answer

GRPC Web Request using golang client?

I am trying to create a grpc server with the hep of grpc-web wrapper. The idea is to use this grpc server both with browser based application as well as with the normal grpc client. But i am confused how can i make it work for both the…
Aech
  • 33
  • 1
  • 5
3
votes
2 answers

Using GRPC-Web without NodeJS

How do you use GRPC-Web on the browser? I mean, in pure browser code, without any NodeJS involved. Official example from here: https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/helloworld are mainly NodeJS oriented. Is there way…
Fireburn
  • 981
  • 6
  • 20
3
votes
0 answers

Fail in using gRPC Web Dev Tools Chrome extension in my Angular Ionic 5 project

I have an Ionic5 app built using Angular11 which is connected to a gRPC Web back-end. I want to be able to debug and decode data coming from the server. I installed the 'gRPC Web Developer Tools' from SafetyCulture on Chrome but the debug tool…
3
votes
5 answers

Can you use gRPC/gRPC-Web to communicate between Microservices hosted on Azure?

I am currently designing a Microservice Architecture, I am very new to the topic, and this question doesn't seem to be explicitly answered anywhere. Is it possible to Communicate between Microservices (Azure App Services) with gRPC? Could it perhaps…
3
votes
0 answers

Envoy and GRPC not working (no healthy upstream)

I have a Java back-end providing GRPC and it works quite well when using without Envoy, however for GRPC-web, it gives me 503 response. I've been trying for several days now without any success. Here's my envoy.yaml: admin: access_log_path:…
lemmer
  • 63
  • 1
  • 7
3
votes
2 answers

GRPC-Web connectivity issue in TLS

I have a GRPC Web client and a GRPC Server and I am using envoy proxy from the conversion of HTTP 1.1 to HTTP2. My server creation Logic uses TLS. The code is as follows: var opts []grpc.ServerOption creds, err :=…
Anshu Kumar
  • 807
  • 1
  • 8
  • 27
3
votes
1 answer

Expected directory: node-v83-linux-x64-musl. Found: [node-v72-linux-x64-musl]

Grpc version: 1.24.2 When deploying my Node.js app I have a problem with the binary file for grpc package. Error: Error: Failed to load gRPC binary module because it was not installed for the current system Expected directory:…
Arthur
  • 3,056
  • 7
  • 31
  • 61
3
votes
1 answer

golang gRPC 503 on CORS preflight using Istio grpc-web proxy

I'm trying to set up a go-based gRPC server in Kubernetes, and making requests via a grpc-web client. The client first runs a CORS preflight request, which seem to make it to the gRPC server. The server is returning a 503 on these option requests. I…
css
  • 944
  • 1
  • 9
  • 27
3
votes
1 answer

blazor wasm --hosted + gRCP web (stream)

Is it possible to do cleint-server streaming responses over gRCP web (http/1.1)? I've got a working client/server + db solution, but it seems like I have to wait for the full server response (see //await Task.Delay(2000); in server) What I would…
Henkolicious
  • 1,273
  • 2
  • 17
  • 34
3
votes
1 answer

Issue with TypeScript definition files when generating proto definitions with protoc-gen-grpc-web

I'm having an issue with my generated proto definitions. I'm using the most up to date version of the protoc-gen-grpc-web which I got from here (version 1.0.7). Note: I've had the same problem on both MacOS and Windows as well as on version…
Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
3
votes
2 answers

gRPC web server returns "Method not found"

I wrote a test gRPC server in Python and client on ReactJS (ES6). It's simple python gRPC server which provides authentication methods for client. Also configured EnvoyProxy for transporting HTTP requests into HTTP2. When I call gRPC method from my…
3
votes
0 answers

gRPC in docker container can't connect to services on host machine

I have slightly modified this example: https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/echo. I am running envoy on a docker container with exposed port 8080 (running this proxy server is required because the browser can't…
Dan Jenson
  • 961
  • 7
  • 20
3
votes
0 answers

gRPC-web cannot connect to server (proxy configuration problem)

I am trying to create a grpc-web client to connect to my grpc server. I already have my grpc server written in C++ and it works well with C# client, everything is okay and tested. Right now I am trying to create a js client to connect to my service.…
3
votes
1 answer

Google Endpoints + grpc-web

As seen in the changelog of the esp proxy for Google endpoints (https://github.com/cloudendpoints/esp/pull/283) support for grpc-web has been added for it. I am however unable to get it to work. I deployed the esp with the following cors…