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

What is the recommended way to do a grpc call from inside a Typescript Vue.Js component?

After reading the documentation of grpc I see proto files can generate Node (Javascript), Typescript with plugin grpc_tools_node_protoc_ts and grpc-web. Since performance is not critical in my case I can load the .proto files with proto-loader. What…
barrelful
  • 23
  • 4
2
votes
0 answers

How can I call gRPC endpoint from Next.js Application inside of a functional component?

I have set up default gRPC server via Visual Studio .net 6.0. The proto file is as foolowing: syntax = "proto3"; option csharp_namespace = "GrpcService"; package greet; // The greeting service definition. service Greeter { // Sends a greeting …
Raitis Lebedevs
  • 47
  • 1
  • 13
2
votes
0 answers

Intermittently getting an "Unknown base64 encoding at char:" message using grpc-web client

We have a C# Grpc.AspNetCore version 2.27.0 service that sends image data to a grpc-web client using grpc-web version 1.3.1 and google-protobuf version 3.14.0, to an AngularJS application running in a Chrome browser that displays images on the page…
P60151
  • 31
  • 4
2
votes
0 answers

Connect NGINX proxy to Envoy for gRPC-Web

I am currently developing a webapp with a gRPC backend. For this I am using gRPC-Web and the Envoy proxy between the webapp and the backend service. It is all going fine but now I wanted to deploy it to a digitalocean server and was setting up NGINX…
wind.leon
  • 33
  • 4
2
votes
1 answer

Duende BFF Yarn does not pass tokens when using gRpc Web Client from Blazor WebAssembly app

I am building a web application with ASP.NET Core 6. I have: Frontend.Client - a Blazor WebAssembly with the UI Frontend.Server - ASP.NET Core, hosting the Blazor WebAssembly Web Api - a remote REST Service gRpc Service - a remote gRpc…
2
votes
1 answer

Envoy proxy: 503 Service Unavailable

State of Servies: Client (nuxt) is up on http://localhost:3000 and the client sends requests to http://localhost:8080. Server (django) is running on 0.0.0.0:50051. Also docker is up 78496fef541f 5f9773709483 "/docker-entrypoint.…" 29…
Saeed
  • 3,294
  • 5
  • 35
  • 52
2
votes
0 answers

gRPC and gRPC-web backend not connecting though kubernetes nginx ingress

I have a gRPC server set up in AWS EKS, and use Nginx-Ingress-Controller with network load balancer , infornt of gRPC , Envoy is using , So it will come like that - NLB >> Ingress >> envoy >> gRPC problem is when we make reqy=uist from bloomRPC ,…
shufilkhan
  • 521
  • 2
  • 6
  • 22
2
votes
0 answers

Envoy always getting SSL Error for grpc-web and grpc

I have using Envoy for grpc-web and grpc service, but it is always getting SSL error. envoy version: 98c1c9e9a40804b93b074badad1cdf284b47d58b/1.18.3/clean-getenvoy-b76c773-envoy/RELEASE/BoringSSL stating command : sudo envoy -c…
shufilkhan
  • 521
  • 2
  • 6
  • 22
2
votes
1 answer

How to retain "camelCase" of the proto message fields using "grpc-web_out" command? any additional options available?

I have generated JavaScript files by compiling proto files with "grpc-web_out" command. These myptoto_pb.js file contains all proto message fields in flatcase (case insensitive). Is there any additional option which I am missing out here? How do I…
2
votes
0 answers

React Native + gRPC 2021

I recently started using React Native and I was wondering, what approaches are now used to React Native + gRPC, many of the answers on the Internet are outdated, maybe there is some new examples, it would be interesting to take a look
Arthur
  • 3,056
  • 7
  • 31
  • 61
2
votes
1 answer

How to solved gRPC exeption with this Status(StatusCode="Unimplemented", Detail="Service is unimplemented.")?

I implemente gRPC in my .net core 3.1 projects. Although it works in my local, does not work on server. I try to implement every things that is necessary in my project to support gRPC. In appsettings I use http2 "EndpointDefaults": { …
2
votes
1 answer

Do i need grpc-web library even if the browser supports http2?

I'm a newbie developer. I wanna know, Do i need grpc-web library even if the browser supports HTTP2 ?. If the answer is yes, please tell me why Thanks in advance
Mona
  • 21
  • 1
2
votes
0 answers

How to configure envoy proxy for 2 grpc services?

I am using a envoy proxy for grpc-web and everything was working fine with one service but now I am registering other services I ran into problems. I thought a routed configuration would work but when I try to hit the endpoint it gives me a DNS…
Luis Liz
  • 1,939
  • 4
  • 20
  • 31
2
votes
0 answers

Flutter Cross-Platform web and mobile

I'm trying to build a cross platform in flutter for web and mobile with protocol buffers. So, in my code i have a function to login and I need to import grpc_web: import 'package:flutter/foundation.dart'; import 'package:grpc/grpc.dart'; import…
user4453709
2
votes
1 answer

gRPC web with react return value and asynchronous behaviour

so I'm trying to call a simple backend service with react (FYI I don't know too much about react or javascript) import React from 'react'; import logo from './logo.svg'; import './App.css'; const {EchoRequest, EchoResponse} =…
joshcarp
  • 21
  • 1