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

How to get custom-defined error payload in web application?

I have the following simple service definition: service Echo { rpc echo (In) returns (Out) {} } message In { string text = 1; } message Out { string text = 1; } message Error { int32 status = 1; } As you see, I have a custom…
user10770435
1
vote
1 answer

how to return list of result from grpc mongoose nodejs?

How can I return a list of todos using grpc nodejs, the result is empty: However when I am trying it without grpc it is returning list with data but when I am trying to get list of todos with grpc it is returning empty result { todo: [] } Note: …
Zayn Korai
  • 493
  • 1
  • 6
  • 24
1
vote
2 answers

how request local gRPC server?

I have a gRPC server, and I want to call this server by local channel like: other message -> adapter -> local grpc client -> local grpc server so how to create a local grpc client?, use local channel to build stub?
FredSuvn
  • 1,869
  • 2
  • 12
  • 19
0
votes
0 answers

GRPC JsonTranscoding + gRPC web in Blazor WASM

It seems that Blazor WASM does not allow a reference to a project having 'Microsoft.AspNetCore.Grpc.JsonTranscoding' installed. So my question is: (how) can GRPC JsonTranscoding and gRPC web be combined? Some context: I have a gRPC API with HTTP…
0
votes
1 answer

create gRPC on C++

Suppose I have a service on a microservice architecture in python and fastApi that communicates via gRPC, for example, an online bookstore. There is also logic written in C++, from which I want to create a new microservice From this question: how do…
0
votes
1 answer

grpc-web - how to get response headers

I'm using grpc-web in react app and calling the endpoint which results in returning error: Error: Response closed without grpc-status (Headers only) getCurrent(callback: (user: User | null, err: ServiceError | null) => void) { const request =…
Axel Stone
  • 1,521
  • 4
  • 23
  • 43
0
votes
1 answer

How to host .net core gRPC service for access from anywhere?

I wrote a web service application ( not web site ). My web service receives web request using gRPC over .net core 6 - and send back Reply. I looking for a way to host my service and let anyone on the same domain to using my web service. I saw on…
Yanshof
  • 9,659
  • 21
  • 95
  • 195
0
votes
0 answers

tonic_web_wasm_client not sending content-type header for gRPC web requests

I have a gRPC GO server that I am trying to connect to using a Rust WASM client. The proto file looks like this: syntax = "proto3"; package pb; message SubscribeRequest { string id = 1; } message Response { string transcript = 1; } service…
Mavese
  • 131
  • 10
0
votes
0 answers

grpc-web UnaryInterceptor is not being called

In My reactjs web app I am trying to use interceptors on grpc but the interceptor is not being called. I tried some of the solutions provided around but could get it resolved. please someone assist me on this. project details: Package: "react":…
0
votes
0 answers

How to send http headers to a grpc service via Grpc-web in Angular

I have a grpc service which gets authorized via JwtToken after reading it from grpc metadata and angular application which calls my grpc service using grpc-web. I login into my angular app using SSO, http header will be having the authorization…
0
votes
0 answers

Multiple grpc streaming server connection to JS client via envoy not working properly

We need to connect three grpc streaming servers simultaneously. In this scenario, each server has two streaming methods, totaling six connections. The streaming continues for three to five minutes after the browser throws an error. Envoy config…
maddy
  • 9
0
votes
1 answer

Can't get Python GCP Cloud Run gRPC service to respond

I am developing a chat app that has three main components (so far). I shall described the "architecture" of the working local development environment: a client in SolidJS running in vite, using nice-grpc-web (a little TypeScript gRPC-web…
serlingpa
  • 12,024
  • 24
  • 80
  • 130
0
votes
0 answers

Getting error Option "service=grpc-web" not recognized

I am using grpc with angular. My package.json: { "name": "angular13", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test":…
Tuvia Khusid
  • 792
  • 5
  • 15
  • 31
0
votes
0 answers

Handling gRPC-web errors in angular client side

I try to use gRPC-web with angular client and asp.netCore server side app. in server side when I throw a RpcException I could not access to Metadata or even error message on client side? is there any thing, I miss to implement? private static async…
0
votes
1 answer

Angular + GRPC-WEB

Using Angular 14 + GRPC-WEB Create a GRPC Proto syntax = "proto3"; package BPGRPC; service BP_GRPC_Service { rpc AddBloodPressure (BP_Request) returns (BP_Response); } message BP_Request { uint32 systolic = 1; uint32 …
AFigueroa
  • 9
  • 1