Open zpervan opened 1 year ago
You need to use a grpc-web proxy in front of your grpc service to translate between the two different protocols.
You need to use a grpc-web proxy in front of your grpc service to translate between the two different protocols.
hi, do you have an example of how to implement this proxy?
Hey everyone and sorry if I am asking noobish questions as I am quite new to all of this.
Anyways, I try to create a gRPC client with Vite, TS and Vue, by using the
protobuf-ts/grpcweb-transport
, but I get the following error constatly:The client code is currently also very simple, and goes something like this:
I was researching about other approaches but I started to somehow run in circles... I also used the examples provided within these packages so my code looks similar and still has the same error. By this point, I assume the generated gRPC proto files are correct (also the command for generating files is taken from the examples).
The gRPC server is working as I verified it with BloomRPC and a simple Rust client - both can easily send the
testConnection
command and get a response.Hope you can help me out here.
Package versions: