Questions tagged [grpc-dart]
18 questions
6
votes
0 answers
How to encrypt the GRPC message with custom encryption before sending the data?
Note : I have enough reasons to add an extra layer of security on top of TLS and using SSL certificates.
What I want to do is , before I make a grpc request , I want to encrypt the grpc request and send something like a byte array.
In google groups…

Natesh bhat
- 12,274
- 10
- 84
- 125
5
votes
1 answer
Interceptors of dart Grpc
I'm developing a flutter app using Grpc to connect to the server. Some of the services need extra metadata for authentication, so the first thing that comes to my mind is implementing an interceptor to add the metadata to those requests like…

Arash
- 825
- 2
- 11
- 19
5
votes
0 answers
Using Grpc Web in Flutter Project
I hope someone can help with my issue
I am creating at the moment an Flutter app for Web and Mobile and I want to use GRPC and WebGrpc. With Grpc Everything runs fine but with Web Grpc I got an error
if (kIsWeb) {
print("flutter web");
…

Moritz Rinckens
- 105
- 2
- 6
3
votes
1 answer
I get gRPC Invalid UTF-8 when I make a request to gRPC endpoint from Flutter app
I am trying to connect a Flutter app to gRPC server.
It used to work fine in my older laptop, but now I always get this error when I try to make a request to an endpoint:
gRPC Error (code: 13, codeName: INTERNAL, message: grpc: error unmarshalling…

Ali Alhajji
- 174
- 2
- 12
2
votes
0 answers
how to set string list into metadata using grpc in dart
I have a golang grpc server. The metadata definition in grpc golang is a struct of map[string][]string, which can get a string list value with a given key.
but in my dart(flutter app) client, the dart grpc metadata definition is a struct of…

Antiphy Initializator
- 41
- 1
- 4
2
votes
1 answer
Import and use protobufs outside of lib directory - dart
I am trying to build a web application with with Flutter for the frontend, go for the backend and gRPC as the communication protocol. In an effort to avoid using identical protobufs in 2 different directories, I refactored the protobufs and compiled…

Sal
- 1,471
- 2
- 15
- 36
2
votes
1 answer
Implement user authentication with gRPC
I'm looking to implement simple user authentication with my dart gRPC server + client and am struggling to find samples on how to achieve this properly.
So my problems are the following:
How do I add the user authentication data (JWT) to API calls…

enyo
- 16,269
- 9
- 56
- 73
1
vote
1 answer
why is gRPC server side stuck after client is done streaming (client and server both written in dart)?
I want to upload an image from client to server in gRPC. For this purpose i have created the proto file below:
syntax = "proto3";
service EshopService {
rpc UploadImage (stream ImageToUpload) returns (ImageLink);
}
message ImageToUpload {
…

Kimiya Zargari
- 324
- 1
- 14
1
vote
1 answer
protoc file not found error in generating for dart
i wanted to generate the protos for dart by
protoc --proto_path=pb/proto --dart_out=lib/api/grpc/pb/gen --plugin=path/to/plugin/.pub-cachce/bin pb/proto/*.proto
but it says
path/to/project/pb/proto/user.proto: File not…

oyopui5-906iu95-06
- 13
- 3
1
vote
0 answers
How can I implement grpc interceptors in dart for the server?
I don't see examples in the doc and there is almost no information on the internet.

Daniel Armas
- 13
- 3
1
vote
1 answer
Dart gRPC TLS certificates with PEMs
I'm having a bit of trouble sorting out how to adapt my Dart gRPC client to use the same TLS settings that are working with my Go client. I've already validated that I can interface with the server suppling the correct CA cert, client cert and…

pilotguy
- 543
- 1
- 5
- 18
1
vote
1 answer
On calling a method from flutter to gRPC service , returning null
I am trying to build a todo app in flutter with gRPC. But when I try to call methods from flutter and printing it its showing null.
server.dart
import 'package:grpc/grpc.dart';
import 'package:grpc/src/server/call.dart';
import…

Sonali
- 51
- 1
- 6
0
votes
0 answers
How to create GrpcError with custom parameter details
For testing some functionality, I need to create some instance of GrpcError with custom details, like this:
when(() => registerRepository.registerUser(
any(),
any(),
any(),
)).thenThrow(GrpcError.custom(13, 'Internal',…

Вячеслав
- 707
- 1
- 12
- 21
0
votes
0 answers
GRPC, dart lang, How to detect failure connection, succesfull connection, lost connection from the server
Hi I wondering how to detect connection from the server. How to solve it. As far as i know channel is an abstraction which managing services ? Do i understand it right? So I can be able to ask channel about connection to server exist. I am trying…

FIREMAN
- 21
- 3
0
votes
1 answer
Dart issues with gRPC connections with streaming response api call
While wokring with gprc in dart, if the response type of the very first rpc call is a streaming response the client app fails to connect to the server when stream handler is envoked. I found the issue while building upon the helloworld example from…

Dhairya Bhardwaj
- 81
- 2
- 10