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

How gRPC-web handles bytes data from server-side streaming?

I want to transmit a sample video file from backend grpc service to the browser using grpc-web, I did some tweaks based on official hello world tutorial. Btw, nothing changed in the envoy configuration. The video file is split into 17 chunks, I can…
Ethan Wang
  • 85
  • 2
  • 11
0
votes
0 answers

How are you deploying blazor wasm grpc-web apps to azure?

I am new to blazor wasm. I re-tooled a sample weather forecast stub to use blazor wasm/grpc-web/identityserver4 (google auth)/postgres db backend via dapper. If i run it locally via visual studio 2019 then it works, but when I tried using azure…
0
votes
1 answer

Does grpc-web TLS requries any config on the client side?

I have been looking for this for a while now. Still not sure if Envoy and Nginx does all the TLS stuff for a web-gRPC client. In my case, my Nginx config works well with gRPC client and server. However, it is not working for web-gRPC client.
0
votes
0 answers

Configure Envoy for vue with grpc-web

Not sure if SO is the correct place for this question but I give it a try. I need to get grpc-web running on my Vue frontend so I learned that I need a proxy for the grpc messages. The vue app runs on a virtual linux machine as well as the envoy…
po.pe
  • 1,047
  • 1
  • 12
  • 27
0
votes
1 answer

grpc-web compile proto file with wildcard

I have a folder protobuf with a lot of .proto files which I can compile with protoc -I=protobuf filename.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:output This generates the grpc_web_pb.js into the /output folder but I'm looking…
po.pe
  • 1,047
  • 1
  • 12
  • 27
0
votes
1 answer

GRPC Stream closed before write could take place ( grpc_pass through nginx )

I am using the GRPCWebClientChannel and I have a backend grpc server. I am using the grpc: ^2.1.3 package of dart I am making the request from my Flutter app. I have an nginx reverse proxy setup to point to my grpc backend. The flutter web client…
Natesh bhat
  • 12,274
  • 10
  • 84
  • 125
0
votes
0 answers

How to convert json to proto message format in Javascript client side?

I need to send a JSON as request to a grpc API via Envoy. Currently, I am using setter functions from protoc auto generated code. Is there any way to directly convert json (even, deeply nested ones) to proto message and send it as request? Here's…
Srinjoy Santra
  • 121
  • 1
  • 7
0
votes
1 answer

Are there any examples of multiple grpc services working alongside eachother

Multiple gRPC Services Example Hello, coming from a restful Scala play framework world. I was wondering if anyone knows of any example projects, videos, medium articles related to stringing together multiple services to cal eachother. All the…
0
votes
2 answers

How to use Traefik and Envoy in the same project to handle grpc-web?

I've got a service up and running on traefik with LetsEncrypt at grpc.mydomain.com. However, traefik doesn't support routing grpc-web request due to some issue with CORS (https://github.com/containous/traefik/issues/4210). Envoy appears to be an…
0
votes
0 answers

Using Jest with gRPC-Web

We are using gRPC-Web client in our project, but when we try to run unit tests on code that imports generated gRPC classes we get an error TypeError: cannot read property 'navigator' of undefined. I guess the problem is somehow related to the way…
0
votes
1 answer

How to call grpc-web proxy from a NodeJS server

I'm running gRPC server that implements the service interface and a Envoy proxy that allows the client to connect, the following js code (file health.js) builded using webpack and referenced dist/main.js into HTML file make success call and it's…
Lorenzo D'Isidoro
  • 2,139
  • 3
  • 16
  • 20
0
votes
1 answer

Java Grpc server behind the Traefik proxy

This is my traefik configuration [entryPoints] [entryPoints.http] address = ":81" [file] [backends] [backends.backend1] [backends.backend1.servers.server1] url = "h2c://10.141.11.230:6566" [frontends] [frontends.frontend1] …
Alexander.Furer
  • 1,817
  • 1
  • 16
  • 24
0
votes
1 answer

How to turn enum values to strings in grpc-web

I have been working on a web application using React-Redux and gRPC. The server sends the frontend gRPC messages which the frontend receives with the enums in the form of integers. How can I turn these integer values to their corresponding string…
0
votes
1 answer

Istio gRPC-Web configuration

I'm trying to expose a gRPC backend service written in .NETCORE3.0 and packaged as a linux docker image. I tested the service in localhost and all works as expected. However, I am unable to access in from GKE using istio (I've updated my GKE cluster…
nkigen
  • 410
  • 1
  • 6
  • 15
0
votes
1 answer

Issues making calls to a gRPC service on GKE (Cloud Endpoints & ESP) from browser (grpc-web)

Intro to the issue I have a gRPC service that is running in GKE. I'm using Cloud Endpoints and have an ESP (Extensible Service Proxy) in front of it that I want to use to handle authentication (JWT tokens). This sounds like a really great way to…
1 2 3
14
15