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
1
vote
1 answer

upstream connect error or disconnect/reset before headers. reset reason: connection failure | GRPC web Envoy

I am facing this error with envoy proxy : upstream connect error or disconnect/reset before headers. reset reason: connection failure | 503 service unavailable. This is my envoy.yaml admin: access_log_path: /tmp/admin_access.log address: …
MydroX
  • 81
  • 1
  • 2
  • 8
1
vote
1 answer

Does Google API Gateway support web gRPC filtering?

I have Google Run containers serving gRPC services. I'd like to build out a front end using web gRPC on Firebase. I am exploring the usage of Google API Gateway as a proxy between web gRPC and proper gRPC. I am looking at this guide:…
1
vote
0 answers

ServiceStatck gRPC

I had created a gRPC service using Servicestack and was able to consume from the console application. When I a trying to call it from angular 12, i was getting the CORS issue I fixed by adding below code services.AddCors(o => o.AddPolicy("AllowAll",…
sajesh
  • 11
  • 2
1
vote
0 answers

Convert grpc unary call to promise

I have an angular project that calls api using grpc web. is there any way I can convert this to promise?, grpc.unary(User.Search, { request: request, metadata:metadata, host: environment.api.gRpcUser, onEnd: res => { const { status,…
DisplayName
  • 71
  • 1
  • 7
1
vote
1 answer

gRPC-web service working fine, but not with bloomRPC

based on this tutorial, I have successully set up an ASP.NET 5.0 Core grpc-Web server and have successfully accessed it with the client application described in the tutorial. However, I am unable to call the service with bloomRPC; posting the…
Codor
  • 17,447
  • 9
  • 29
  • 56
1
vote
0 answers

grpcweb wrapped server functions call via golang client?

I have cloned this project from github : https://github.com/gustavohenrique/grpc-web-golang-vuejs/tree/master/backend. I ran the project both frontend and backend.It works. This project is using grpcweb wrapped server. Then i wrote a small client to…
Hsn
  • 1,168
  • 2
  • 16
  • 39
1
vote
0 answers

how do I make requests with node js grpc server vue js

I am having such a problem when sending a request to the grpc server with vuejs, how can I do? How can I create a nodejs grpc server and use vue js as a client to send a request and get a response. MyServer Code here; const grpc =…
1
vote
1 answer

Best practice to setup grpc-web -> envoy proxy -> backend service in gcp

I have read some tutorials/examples trying to figure out an easy way to launch a grpc backend with envoy proxy to route traffic for web. I successfully run this architecture locally for a e2e communictaion. I found the official doc…
forest
  • 411
  • 1
  • 4
  • 6
1
vote
0 answers

Struggling to make gRPC-web and HTTPS work

I've got a SPA web app that uses gRPC web and envoy to proxy back to a server that speaks gRPC. This all works great, no problems. I'm trying to make this secure using HTTPS/TLS and just keep running into issues and can't make it work. Our setup is…
Nick
  • 31
  • 3
1
vote
1 answer

google-protobuf error from REACT: TypeError: c.toArray is not a function

Any idea about this error? TypeError: c.toArray is not a function Function.push../node_modules/google-protobuf/google-protobuf.js.jspb.Message.setWrapperField grpc server implemented in python. grpc-web client is in REACT. proto message: message…
rangma00
  • 11
  • 2
1
vote
1 answer

How to generate an object out of proto map

I have following proto that defines a dictionary map, when converting to typescript this type is returned as an array of tuples Array<[string,string]> however I would like it as an object of key:value pairs. Is it possible? Should I use different…
1
vote
1 answer

Can I use pure grpc (not grpc-web) in frontend javascript

According to https://grpc.io/blog/state-of-grpc-web/ It is currently impossible to implement the HTTP/2 gRPC spec3 in the browser, as there is simply no browser API with enough fine-grained control over the requests. For example: there is no way to…
tokubi
  • 11
  • 1
1
vote
2 answers

Is grpc-web code-first approach will support IIS?

I created a gRPC service with a code-first approach. I published my gRPC code to IIS and while consuming in a Blazor client, I was getting "Exception was thrown by handler" The same code is working fine with localhost.
Siva
  • 21
  • 3
1
vote
1 answer

Error in the generated proto file in grpc-web saying proto is not defined

I am trying to run grpc-web with nuxtjs. The issue I am facing only happens when I run "npm run dev". Its not happening if I run "npm run start" ie, production mode. I have included all the files and when I run it and try to access the webpage, it…
defiant
  • 3,161
  • 11
  • 41
  • 65
1
vote
2 answers

Calling a .Net framework gRPC service from a web app

I know it's possible to set up a gRPC server and client scenario using only .Net Framework (two console applications for example). It is also possible to setup a web app client (in my case using Angular) and a .Net Core gRPC server app with the…
Q-bertsuit
  • 3,223
  • 6
  • 30
  • 55