elixir-grpc / grpc

An Elixir implementation of gRPC
https://hex.pm/packages/grpc
Apache License 2.0
1.36k stars 210 forks source link

Passing a nil channel to GRPC.Stub function errors on compressor #353

Closed davydog187 closed 3 months ago

davydog187 commented 4 months ago

Describe the bug If you pass nil to a GRPC.Stub function rather than a channel as expected, it will fail on lib/grpc/stub:251: key :compressor not found in: nil

To Reproduce Steps to reproduce the behavior: Call any RPC stub function with a nil channel as the first argument

Expected behavior It should give a nice error message or a match error for the appropriate type, rather than an inadvertent error