When I call the client.get_transaction method, I get a BinanceChainAPIException error. However, the status code of http is 200, and the code in the response result is 0. After I flip through the api document, I found the result to be correct. After I looked at the source code, I found that HttpApiClient. _handle_response when parsing the result, if 'code' in res and res['code'] != "200000": This code is inconsistent with the definition of api.
When I call the
client.get_transaction
method, I get aBinanceChainAPIException
error. However, the status code of http is200
, and thecode
in the response result is0
. After I flip through the api document, I found the result to be correct. After I looked at the source code, I found thatHttpApiClient. _handle_response
when parsing the result,if 'code' in res and res['code'] != "200000":
This code is inconsistent with the definition of api.