ktr0731 / evans

Evans: more expressive universal gRPC client
MIT License
4.23k stars 187 forks source link

Why i need a proto file or reflection to call grpc web? #652

Closed loeffel-io closed 1 year ago

loeffel-io commented 1 year ago
echo '{}' | evans --host xxx --port 3000 --web cli call mindful.earth.category.v1.CategoryService/BatchGetCategories
* one or more proto files, or gRPC reflection required

grpc-web has no reflection right?

evans --host xxx --port 3000 --web -r repl                                                                      
evans: failed to run REPL mode: failed to instantiate a new spec: failed to instantiate the spec: failed to list packages by gRPC reflection: failed to list services from reflection enabled gRPC server: failed to create a new client stream: failed to create a new transport stream: failed to dial to 'ws://xxx:3000/grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo': websocket: bad handshake
ktr0731 commented 1 year ago

I can't know if the behavior is caused on Evans side. Please provide more information with the issue template.