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

Connecting to grpc-web via nginx

I am having a golang server that is sending GRPC stream and I am trying to connect to it via windows .NET client but I am only able to do it if I connect to the grpc-web server directly and the connection doesn't work if I use proxy_pass or…
ananth
  • 439
  • 5
  • 10
0
votes
0 answers

How to connect a C++ gRPC server with a ReactJS client?

I'm currently working on a project where I have a C++ gRPC server and a ReactJS client. The problem is I can't get the client to communicate with the server due to CORS restritions. Everytime I try to call my server from my client (in firefox) I get…
lafak
  • 21
  • 1
  • 6
0
votes
0 answers

How to deploy grpc-web on aws?

I have a backend service that I want to expose via grpc-web. I'm able to use the service directly via the public IP of the ec2 instance. But when I try to access it via the invocation URL of API Gateway I get a CORS error. I want to add JWT…
0
votes
1 answer

stream webcam frames from website (client browser) to a server and get back analytical data results live

I have a project that I need to stream webcam frames from website (client browser) to a server (cloud server) and get back analytics results back. The server will get on live the frames process them with light algorithm and will return a data (not…
0
votes
0 answers

gRPC Client Never Receives Response Headers

I want to send information about the current client version from the server in all responses to the callers. I want to have this information in the HTTP header. But I am not able to read the headers in the client. I call the method…
Nio78
  • 11
  • 3
0
votes
0 answers

Best practice to fetch data after the partial update through server streaming on gRPC

I am making Task List using Go, gRPC-Web and Postgres. How can I fetch the data with server streaming after updating exist data? With the following data, Post data with Task{ id: 1, name: 'abc1' } Post data with Task{ id: 2, name: 'abc2' } Post…
Pytan
  • 1,138
  • 11
  • 28
0
votes
0 answers

TS2339 warning from gRPC generated Typescript files

I generated a simple demo project using gRPC's but I am not able to use the generated setters. If I access the varables directly from the response I get a warning that reads. res.data.title TS2339: Property 'title' does not exist on type…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
0
votes
0 answers

GRPC with JavaScript Client?

Hello I m trying to find ref for GRPC with JavaScript Client. I checked tried to search but is generally refer Node Library. In my implementation I have .NET GRPC server and have react UI app so just want to check is GRPC client support JavaScript…
0
votes
0 answers

How to check if the user is listening on gRPC async stream from server

I have a server which is supposed to stream a set of endless data to the web client when client subscribes to it using grpc-web but my problem is that the server continues sending data even after user goes to some other page and leaves the streaming…
0
votes
1 answer

Environment variables in grpc.AspNet core [GRPC_TRACE, GRPC_VERBOSITY]

I'm migrating from grpc.core to Grpc.AspNetCore. I've tried to set enviroment variables to get detailed logs but can't see any difference in the logs. Does Grpc.AspNetCore still uses enviroment variables like GRPC_TRACE or GRPC_VERBOSITY (see here…
0
votes
0 answers

"grpc_message":"no healthy upstream","grpc_status":14

I am running a python grpc server and using envoy to connect to it through client. The envoy is deployed in GKE. I am attaching the envoy deployment yaml. apiVersion: apps/v1 kind: Deployment metadata: name: envoy-deployment labels: app:…
ak1234
  • 201
  • 2
  • 10
0
votes
0 answers

gRPC web + envoy + Spring boot GRPC server - No 'Access-Control-Allow-Origin' header is present on the requested resource

gRPC server ( has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource) Started the gRPC…
Syed Rafi
  • 825
  • 2
  • 12
  • 35
0
votes
0 answers

Deploy grpc web application on AWS ECS

Deploying a grpc service on AWS was pretty straight forward thanks to the built in support in their load balancer, but as far as I can tell they don't have a built in solution for grpc-web? What would be the easiest way to add support for grpc-web…
Kimble
  • 7,295
  • 4
  • 54
  • 77
0
votes
1 answer

grpc-web behind double nginx

I've got grpc-web running in react. This communicates through NGINX. This NGINX communicates with a different NGINX server, running in docker, which communicates with my rust tonic http1 server. With one NGINX server the following config worked: …
Daniël van den Berg
  • 2,197
  • 1
  • 20
  • 45
0
votes
0 answers

ngx-grpc + dev tools

I'm not sure where to address this, but is there a way to make chrome render GRPC network nicely? Within network tab I always see encoded hash instead of JSON response. We use @ngx-grpc library, but it doesn't seem to work with…
sawio
  • 1