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
0 answers

How to pass a grpc request via envoy proxy?

So, I have a grpc request which I invoke as follows: grpcurl -vv \ -import-path ./protos/src \ -proto protobuf/grpc/my_api.proto \ -H 'Authorization:Bearer ' \ -d '{"data":"yes"}' usvc.dev.company.com:443 …
Saturnian
  • 1,686
  • 6
  • 39
  • 65
0
votes
1 answer

Can reverse proxy for both grpc and grpc-web with envoy?

I have grpc server, web application and mobile application. With web application, I used envoy proxy for reverse from grpc web to grpc server by my domain. But this only grpc web can connect to my server over envoy, my application run with grpc…
0
votes
1 answer

Set headers for grpc-web call

I'm currently facing an issue with grpc-web, and a loadbalancer. Trying to call our grpc webservices from our gateway API, results in the following error: Status(StatusCode="Unknown", Detail="Bad gRPC response. HTTP status code: 411") It appears…
Christian A
  • 483
  • 1
  • 10
  • 23
0
votes
2 answers

GRPC with Angular and Typescript

I have a GRPC service running written in Python. I have the python support proto file for the same. I want to integrate this backend with AngularJS+Typescript UI. Questions are: Is it possible? Do I have to change anything in the Python grpc server…
Alok Sen
  • 11
  • 5
0
votes
1 answer

How to configure TLS @improbable-eng/grpc-web for NextJS based application?

I am using NextJS to build my web application with https://github.com/improbable-eng/grpc-web for communication between backend and frontend. The following React element uses grpc.invoke to communicate with GRPC backend service: export default…
softshipper
  • 32,463
  • 51
  • 192
  • 400
0
votes
1 answer

Can gRPC and gRPC-Web be used at the same time in ASP.NET?

We are building a frontend written in React and at the same time, we have multiple backend systems written in C#. Is it possible to host the same ASP.NET gRPC services using normal gRPC and gRPC-Web at the same time? So the service can be called…
0
votes
1 answer

gRPC-web typescript how to convert from long to number

I was working with gRPC-web, and I have data from the server with id type number|Long. I need to assign number|Long to the number. Long is from the server that uses gRPC to communicate. Error: Type 'number | Long' is not assignable to type…
Jasurbek Nabijonov
  • 1,607
  • 3
  • 24
  • 37
0
votes
0 answers

Grpc-Web Application hosting in IIS

I have created a sample Grpc application with a basic ado .net query and I want to host the same in the IIS. The application works fine when I consume it from a net client but after hosting, I am getting an error in the client application when I try…
0
votes
0 answers

gRPC-js + Angular ngx-grpc - Stream stops receiving messages after 4 received

I have a grpc-js server setup with a rpc method called getUsers(). When making the call from the client, I only receive 4 of the messages back, despite there being 6 sent. Here's the client method: const client = new…
Tom
  • 47
  • 6
0
votes
0 answers

High cpu usage from grpc AsyncServerStreamingCall

i'm trying to stream some log feed over grpc and it's working great. But the streaming causes very high cpu usage, even though it's not necessary. Logs are coming in with 100-500ms inbetween. var logStream = client.StreamSessionLogs(new…
ole
  • 159
  • 2
  • 13
0
votes
0 answers

grpc-web over azure hybrid conenction throws An attempt was made to access a socket in a way forbidden by its access permissions

I'm trying to run a blazor app in an webapp in azure but the database is in a local domain. So Azure hybrid connection is a good idea to get on the local domain. Due to some restrictions we cannot directly link to the database and chose to create an…
linmic
  • 139
  • 2
  • 10
0
votes
1 answer

Retryable grpc-web server-streaming rpc

I am trying to wrap a grpc-web server-streaming client with rxjs.Observable and be able to perform retries if say the server returns an error. Consider the following code. // server foo = (call: (call: ServerWritableStream):…
j4ckofalltrades
  • 572
  • 1
  • 5
  • 16
0
votes
1 answer

Getting ERR_INVALID_HTTP_RESPONSE while making grpc-web request to local server

I am trying grpc-web hello world program in an angular application, hitting a local python server via nginx and I am getting ERR_INVALID_HTTP_RESPONSE error in browser. I don't think the request is even hitting the nginx proxy. Though I am able to…
Synster
  • 329
  • 6
  • 16
0
votes
1 answer

Binding interceptor in grpc-web Typescript

I am trying to follow this tutorial https://grpc.io/blog/grpc-web-interceptor/ to add interceptor for my grpc-web client requests. Using the final line that explains how to bind an interceptor to a call, using that call in typescript I firstly get…
John Demetriou
  • 4,093
  • 6
  • 52
  • 88
0
votes
1 answer

Does GRPC Middleware library support grpc-node?

Does GRPC Middleware library support grpc-node? I'm interested in logging grpc proto requests, and it seems like I might have to learn golang in order to have a logging feature?
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15