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

React-native + gRPC-web error: Http response at 400 or 500 level

I was trying to add gRPC to a react-native project. I use envoy which is listening on port 8080 to proxy requests to the node server running on port 4000. However, I get this error message “Http response at 400 or 500 level”. I use the same…
0
votes
1 answer

Grpc.Core.ClientBase Error in IIS when service invoked from Blazor Webassembly app

I'm having the following error in the browser console that is not allowing the Blazor Webassembly app to continue consuming the grpc API: System.ArgumentException: The base-type Grpc.Core.ClientBase for service-proxy…
Jav_1
  • 462
  • 5
  • 12
0
votes
1 answer

Can we use gRPC for exposing API to clients as alternative to library?

I'm new to gRPC and after gathering a bit of knowledge thinking of using it for a production-grade service. There are several customers of the service who are using REST API endpoints of the service to integrate their system with the service. To…
forhadmethun
  • 535
  • 5
  • 16
0
votes
0 answers

Angular does not use HTTP 2 for gRPC

I have an angular application using gRPC API via gRPC-web. It is able to retrieve the data however the network tab shows it is using HTTP/1.1 protocol. My understanding is that gRPC uses HTTP2 protocol for communication (which is faster than HTTP1)…
developer
  • 1,401
  • 4
  • 28
  • 73
0
votes
1 answer

GRPC-Web + Blazor CORS Issue

I'm trying to create a Blazor WASM application that will call a GRPC gateway using grpc-web. The description of the Gateway Service is: syntax = "proto3"; import "Services/AdService.proto"; package BonnieAndClydesdale.Core; service GatewayService…
ScottishTapWater
  • 3,656
  • 4
  • 38
  • 81
0
votes
1 answer

How to integrate gRPC web client to Redux Toolkit RTK query?

Have a problem. Has someone integrated gRPC web client with Redux-Toolkit RTK query?
Max
  • 11
0
votes
1 answer

Is it possible to do Mutual TLS(or client certificate authentication) in grpc-web against a grpc java server?

Can we do mutual TLS when using grpc-web via a proxy as mentioned in "The state of gRPC in the browser" and "mutual TLS"? Will it ever come to be that we can use grpc from browser without a proxy? Originally asked here. Posting it here now, as…
Uma Priyadarsi
  • 85
  • 1
  • 3
  • 11
0
votes
1 answer

TypeError: response.getMessage is not a function

I am trying to set-up the GRPC React.js client with Ruby server. I have tested the server with simple Ruby client and it worked so moved on and tried to implement it in my React app, but I get an error TypeError: response.getMessage is not a…
nerwusik
  • 71
  • 1
  • 5
0
votes
1 answer

`Protocol Error` when trying to connect Envoy to gRPC service using gRPC Web

I have a web app using gRPC Web to interact with my gRPC service through a dockerized Envoy Proxy. When I try calling the endpoint exposed in Envoy, I receive the following error: gRPC Error (code: 14, codeName: UNAVAILABLE, message: upstream…
Sal
  • 1,471
  • 2
  • 15
  • 36
0
votes
1 answer

Blazor WebAssembly using GRPC

I have a Blazor WebAssembly web application and want to use an existing GRPC service. When I open a new channel, I get the following error message: Channel = new Channel(_settings.RemoteAddress, ChannelCredentials.Insecure); 'Unsupported…
fkuehne
  • 91
  • 1
  • 6
0
votes
0 answers

GRPC reflection and grpc-web proxy does fail to find services

I can't figure out why web calls do not find the service GetNodeChannels. I have registered the server with the associated services here: https://github.com/lncapital/lnc/blob/frontend/cmd/lnc/lnc.go#L158-L168 And I'm creating the server struct and…
Ole Henrik Skogstrøm
  • 6,353
  • 10
  • 57
  • 89
0
votes
0 answers

Why would browsers not give complete API control over HTTP2 frames from JavaScript?

But gRPC cannot be used properly inside browsers, because they don’t (and probably will not) provide sufficient API to control HTTP2 frames from JavaScript. (https://medium.com/@denis.zhbankov/grpc-web-via-http2-b05c8c8f9e6) I don't understand why…
Chandraaditya
  • 341
  • 1
  • 8
  • 18
0
votes
0 answers

Typescript error ts(2352): How to get rid of 'unknown' type conversation on gRPC types generated from proto file

Working on consuming a gRPC server stream call from Angular client. Getting below error type conversion error: "Conversion of type 'TestReply' to type 'AsObject' may be a mistake because neither type sufficiently overlaps with the other. If this…
mv_05
  • 109
  • 12
0
votes
1 answer

Grpc-Web Client in Java

I'm trying to connect to a grpc-service from a Java client. The problem is that this service is currently supporting only grpc-web over http1.1, this is because of a limitation of supporting http2 in Azure App service where the service is…
Muhammad Ghandour
  • 272
  • 1
  • 2
  • 7
0
votes
1 answer

Unresolved HTTP2 dependency in grpc-js for bidirectional RPCs

So I'm creating a client for chatting application using grpc and vue-cli client. My proto file looks like this: syntax = "proto3"; package chat; option go_package = "backend/proto"; message ChatMessage { string msg = 1; } service ChatService…