bumi / lnrpc

a gRPC client for the Lightning Network Daemin (LND) packed as rubygem
MIT License
18 stars 6 forks source link

NoMethodError: undefined method `encode' for Hash:Class #2

Closed ryan-lingle closed 5 years ago

ryan-lingle commented 5 years ago

lnd = Lnrpc::Client.new({credentials: cert, macaroon: macaroon}) lnd.get_info

Continue to get: NoMethodError: undefined method `encode' for Hash:Class

bumi commented 5 years ago

Hi, thanks for reporting this! I've seen that before, but forgot what exactly the problem was. :(

Can you make sure that you are using the latest version of the gem? v0.5.2 - I've just now released a new version that depends on newer versions of grpc and google-protobuf gems with some bug fixes.

what ruby version are you using?

ryan-lingle commented 5 years ago

Yes, I believe that was it! Thanks! I have another issue but I am pretty sure it entirely unrelated and something other people may run into so I will put it in another issue.