on wrong api calls HAfAH doesn't return errors, it gives empty result
Maybe this is not so serious issue but its difference comparing to account_history_api, for example when sending jsonrpc (with not existing trx id:
{"jsonrpc": "2.0", "method": "account_history_api.get_transaction", "params": {"id": "b3bd7acb32b003580db069202aae3ee96db3b663"}, "id": 4200}
In hafah we get:
{'jsonrpc': '2.0', 'result': {'ref_block_num': None, 'ref_block_prefix': None, 'expiration': None, 'operations': [], 'extensions': [], 'signatures': [], 'transaction_id': 'b3bd7acb32b003580db069202aae3ee96db3b663', 'block_num': None, 'transaction_num': None}, 'id': 4200}
In account history we get:
{'jsonrpc': '2.0', 'error': {'code': -32003, 'message': 'Assert Exception:false: Unknown Transaction b3bd7acb32b003580db069202aae3ee96db3b663', 'data': {'code': 10, 'name': 'assert_exception', 'message': 'Assert Exception', 'stack': [{'context': {'level': 'error', 'file': 'account_history_api.cpp', 'line': 250, 'method': 'get_transaction', 'hostname': '', 'timestamp': '2022-01-04T11:23:04'}, 'format': 'false: Unknown Transaction ${t}', 'data': {'t': 'b3bd7acb32b003580db069202aae3ee96db3b663'}}]}}, 'id': 4200}