Papierkorb / json_rpc

JSON-RPC client and server library
MIT License
12 stars 1 forks source link

undefined method 'result' for JsonRpc::EmptyResponse #1

Open watzon opened 6 years ago

watzon commented 6 years ago
Error in src/garlicoin/client.cr:60: instantiating 'Garlicoin::Client#backup_wallet(String)'

puts client.backup_wallet("/home/watzon/Desktop")
            ^~~~~~~~~~~~~

in src/garlicoin/client.cr:40: instantiating 'call?(JsonRpc::EmptyResponse:Class, String, Array(String))'

      call?(JsonRpc::EmptyResponse, "backupwallet", [destination])
      ^~~~~

in lib/json_rpc/src/json_rpc/client.cr:117: undefined method 'result' for JsonRpc::EmptyResponse

        response.result
                 ^~~~~~

Rerun with --error-trace to show a complete error trace.
Papierkorb commented 6 years ago

The EmptyResponse is really that: Completely empty as in, omitted.