grpc-web-hacker-news icon indicating copy to clipboard operation
grpc-web-hacker-news copied to clipboard

Installation of protoc-gen-grpc-web

Open iAmGroot1 opened this issue 5 years ago • 1 comments

Hi,

Sorry for an unrelated question 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 plugin protoc-gen-grpc-web which doesnt work despite having installed the latter.

Got the following error : protoc -I=./ service.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./ protoc-gen-grpc-web: program not found or is not executable --grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 1.

OS : Ubuntu 18.04

Any suggestions on how to solve this issue? Thank you!

iAmGroot1 avatar Feb 25 '20 07:02 iAmGroot1

I suspect when protoc is being invoked, it cannot find the grpc-web plugin. Would you happen to have a sample repository with setup steps? Ideally runnable in something like docker so we can isolate environment specific issues? I'm happy to help you investigate this.

easyCZ avatar Feb 27 '20 10:02 easyCZ