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
6
votes
2 answers

TypeError: Cannot read properties of undefined (reading 'MethodInfo') in react js app using grpc-web

I am using grpc-web to communicate with a java backend over gRPC. I am using ReactJS on the frontend which uses grpc-web to interpret the protobuffers. I am getting this strange error. My protos are correct ( I checked using a reflection tool called…
Asma Rahim Ali Jafri
  • 1,173
  • 2
  • 15
  • 22
5
votes
0 answers

Connecting react web client to gRPC server through Envoy docker doesn't work

I have gRPC server in scala Play Framework which exposes gRPC hello world example service on port 9000. I'm trying to connect it with React web client. It seems that I'm having connection issues with Envoy proxy which is deployed to docker container…
zoran jeremic
  • 2,046
  • 4
  • 21
  • 47
5
votes
2 answers

Asp.net: 'application/grpc-web' is not supported

I had Asp.net core and gRPC working on the browser...but now I get: info: Grpc.AspNetCore.Server.ServerCallHandler[2] Request content-type of 'application/grpc-web' is not supported. Any ideas on how to track this down?
Ray
  • 2,974
  • 20
  • 26
5
votes
1 answer

GRPC client Error: 14 UNAVAILABLE: failed to connect to all addresses

Im trying to test my grpc client connection using below code. I have .net core grpc server and using node js grpc client to connect. But getting "failed to connect to all addresses" error. BUt able to connect .net grpc server to .net grpc client.…
harish511
  • 187
  • 2
  • 2
  • 6
5
votes
0 answers

Using Grpc Web in Flutter Project

I hope someone can help with my issue I am creating at the moment an Flutter app for Web and Mobile and I want to use GRPC and WebGrpc. With Grpc Everything runs fine but with Web Grpc I got an error if (kIsWeb) { print("flutter web"); …
Moritz Rinckens
  • 105
  • 2
  • 6
5
votes
1 answer

Dealing with CORS using the Contour Kubernetes Ingress

What is the best way to allow CORS requests at this time? (Given that CORS support in the Contour Ingress currently is in the "parking lot") My particular use case is hosting a GRPC service, which envoy reverse proxies. Conveniently, contour also…
5
votes
1 answer

Protobuf Build Protoc select all .proto files in a directory

I have the following .sh file that I run to build my protos. mkdir -p ./src/gen protoc -I=../protos/ \ ../protos/common/*.proto \ ../protos/service/protos/*.proto …
Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
5
votes
1 answer

How to use grpc streaming in grpc-web?

I want to send files to server from React client. I know that for this I should use grpc streaming and split files into chunks. So, the question is how to send these chunks to server?
Beaxhem
  • 501
  • 6
  • 12
5
votes
1 answer

web gRPC with TLS on localhost

I have a Go server and client using a local trusted certificate and they communicate flawless with each other. Now I want the Go server to communicate with a web-grpc instance too. Insecure didn't work as browsers force HTTP2 to go over TLS or deny…
user6834400
5
votes
2 answers

Can we use nginx proxy for gRPC-web integration, without docker dependency?

Need to use NGINX without docker I have tried using gRPC-web integration using the envoy proxy that had docker dependencies and so I moved to NGINX, how to use NGINX without docker dependencies?
karthi
  • 51
  • 1
  • 4
4
votes
0 answers

Is there a way to decode gRPC response into JSON?

I am creating a chrome extension to debug all the gRPC calls in a good way. Until now I tried: JSON.parse(body.toString()) atob(body) But non of it is working. So my question is: Is there a way to decode gRPC response into JSON?
mgm793
  • 1,968
  • 15
  • 23
4
votes
2 answers

Unable to call gRPC service from Angular client

I am trying to call a gRPC service from Angular application. If I host the server locally and call it from Anuglar application then it works. const client = new HelloWorldServiceClient("http://localhost:5001"); const request =…
developer
  • 1,401
  • 4
  • 28
  • 73
4
votes
2 answers

How to configure GKE Autopilot w/Envoy & gRPC-Web

I have an application running on my local machine that uses React -> gRPC-Web -> Envoy -> Go app and everything runs with no problems. I'm trying to deploy this using GKE Autopilot and I just haven't been able to get the configuration right. I'm new…
Renee Revis
  • 111
  • 1
  • 6
4
votes
1 answer

Go WebAssembly with gRPC Web

I want to make a website using webassembly written mainly in go, and I would like to use grpc protocol, due the web restrictions, I have to use the "web version protocol" of grpc, and it can be compiled to js library, and how can I compile the "web…
4
votes
0 answers

Is gRPC suitable for push notification?

Currently I am using SignalR for push notification, but due to cost constrain looking for the new alternative. When I read about gRPC its mostly used for microservice communication. Will this gRPC is suitable for web push notification? is there any…
Shankar
  • 65
  • 5
1
2
3
14 15