Not clear enough error messages in some specific cases
While doing tests for escrow_operation
I ran into a problem where error message wasn't clear - it tells that there is a problem with escrow_object
but it doesn't tell exactly what's wrong. This happened where I tried to resolve already fully resolved escrow. According to @ABW there is many similar situations to this case in hive. Error message:
E helpy.exceptions.RequestError: {'send': '{"jsonrpc": "2.0", "id": 0, "method": "escrow_release", "params": ["alice", "carol", "bob", "carol", "alice", 0, "25.000 TBD", "25.000 TESTS", true]}', 'error': '{"id":0,"error":{"code":1,"message":"0 exception: unspecified\\n0 exception: unspecified\\nunknown key: [\\"alice\\",0] of type: boost::tuples::tuple<hive::protocol::fixed_string_impl<fc::erpair<unsigned long, unsigned long> >, unsigned int, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> at multiindex lookup: hive::chain::escrow_object.index<hive::chain::by_from_id>\\n {\\"kt\\":\\"boost::tuples::tuple<hive::protocol::fixed_string_impl<fc::erpair<unsigned long, unsigned long> >, unsigned int, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>\\",\\"multiindex\\":\\"hive::chain::escrow_object\\",\\"indexed_by_typename\\":\\"hive::chain::by_from_id\\",\\"key\\":[\\"alice\\",0]}\\n chainbase.hpp:1179 get:0 exception: unspecified\\nunknown key: [\\"alice\\",0] of type: boost::tuples::tuple<hive::protocol::fixed_string_impl<fc::erpair<unsigned long, unsigned long> >, unsigned int, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> at multiindex lookup: hive::chain::escrow_object.index<hive::chain::by_from_id>\\n {\\"kt\\":\\"boost::tuples::tuple<hive::protocol::fixed_string_impl<fc::erpair<unsigned long, unsigned long> >, unsigned int, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>\\",\\"multiindex\\":\\"hive::chain::escrow_object\\",\\"indexed_by_typename\\":\\"hive::chain::by_from_id\\",\\"key\\":[\\"alice\\",0]}\\n chainbase.hpp:1179 get: (unformatted args: (\\"data\\",{\\"id\\":252,\\"error\\":{\\"code\\":-32000,\\"message\\":\\"0 exception: unspecified\\\\nunknown key: [\\\\\\"alice\\\\\\",0] of type: boost::tuples::tuple<hive::protocol::fixed_string_impl<fc::erpair<unsigned long, unsigned long> >, unsigned int, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> at multiindex lookup: hive::chain::escrow_object
Edited by Mateusz Kudela