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
4
votes
1 answer

Consuming a grpc stream fails on de-serializing response

We are trying to use streams with a net core backend but getting deserialize error "grpc":{2 items "method":string"*****" "error":{2 items "code":int2 "message":string"Error in response deserializer function." } } protoc is…
Julius Koronci
  • 408
  • 4
  • 10
4
votes
1 answer

How to use google.protobuf.Any type in typescript?

1.the protocol buffer 3 file test.proto option go_package = ".;apps"; package apps; message ShardKvMap{ map data = 1; } 2.i use grpc-web build .ts file protoc -I=$DIR test.proto \ …
Thinking
  • 41
  • 1
  • 2
4
votes
2 answers

Exception when adding new method in a working Service using gRPC-Web and protobuf-net

I am getting the following exception: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: The type initializer for 'DefaultProxyCache1' threw an exception.…
4
votes
4 answers

Installation of protoc-gen-grpc-web

I am currently working on using grpc-web to write a simple client for my service. I have created a service.proto file which was successfully compiled using protoc. The problem arose when I tried to generate the gRPC-Web service client stub using the…
i_Am_Groot
  • 41
  • 1
  • 2
4
votes
2 answers

gRPC c# file download/upload + web client side

The main problem: I am looking for a solution to improve upload/download speed for large files. I've heard about relatively new technology gRPC. I understand that it is good for server to server communication e.g. microservices…
Albert Lyubarsky
  • 438
  • 1
  • 7
  • 15
4
votes
2 answers

improbable-eng/grpc-web Response closed without headers

I have a server in go using gRPC and on the react client I'm using grpc web with grpcwebproxy and I've been trying to connect my client to the server but constantly get error Code 2, with the message: Response closed without headers. Has anybody…
kpuno
  • 41
  • 1
  • 4
3
votes
1 answer

How can I implement a gRPC ServerWritableStream in nest.js?

The nest.js documentation doesn't mention anything regarding the case of a unidirectional ServerWritableStream. I want to receive a normal request and use call.write to pass to the client streaming messages. This works fine in plain TypeScript using…
Va5ili5
  • 749
  • 8
  • 20
3
votes
0 answers

"grpc_message":"Stream removed","grpc_status":2

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
3
votes
1 answer

How to use grpc bidirectional streaming in grpc-web?

I want to use grpc bidirectional streaming in web browser. Can I use bidirectional streaming with grpc-web in browser? rpc TypingStream (stream OutgoingTyping) returns (stream IncomingTyping); }
3
votes
1 answer

errors: does not provide an export named when using vite in grpc-web project

I'm trying to use vite I've some JavaScript-generated files for GRPC communication; alongside each file, there is a declarative file because I'm using React with TypeScript. When running Vite, I get this error: Uncaught SyntaxError: The requested…
bupt mzx
  • 31
  • 2
3
votes
0 answers

Envoy setup for grpc-web

I'm a bit confused as to how to set up Envoy with gRPC web. According to the documentation, "we will use the Envoy proxy to forward the gRPC browser request to the backend server. You can see the complete config file in envoy.yaml". I have a JS FE…
user726350
  • 31
  • 2
3
votes
0 answers

RpcError from application code while cypress testing

I have a vuejs application which uses grpc-web and proto. I am integrating cypress in my application for automation testing. I am having an issue when running the cypress test the API call returning error, but when I am running the application…
Priyank
  • 224
  • 2
  • 14
3
votes
1 answer

Using gRPC Web with Dart

I have a web application with the following stack: UI: Flutter Web/Dart Server: Go Communication Protocol: gRPC/gRPC-Web I have defined a few protobufs and compiled them into both Go and Dart successfully. When I run the Go server code, I am able…
Sal
  • 1,471
  • 2
  • 15
  • 36
3
votes
0 answers

Make gRPC-web working in cross-env js library

I'm trying to build a JS library which is able to make gRPC requests (using HTTP for transport) in browser and node (used by Server Side Rendering) in a transparent manner, not dependent of environement. There are already two different libraries…
3
votes
0 answers

Unknown gRPC error with no error message - gRPC-web and goproxy

I'm trying to build a web application with the following stack: Flutter/Dart Go/goproxy gRPC MongoDB I was able to successfully define and compile a protobuf into Dart and Go, however now that I'm trying to integrate the UI with the backend, I am…
Sal
  • 1,471
  • 2
  • 15
  • 36
1 2
3
14 15