Open anhcao142 opened 3 years ago
I am experiencing this as well and it causes ripple-lib
to fail to make payments when the load_factor
is missing.
As indicated by the warning message, the query is hitting a reporting server. s1 and s2 contain a mix of reporting mode and P2P ("normal") mode servers. Because reporting mode does not handle protocol traffic, it really doesn't have any need to worry about a load_factor
, so you can treat it as if it returned 1
.
s1 and s2 are public services intended for testing and development. They provide no service guarantees. If you want to use the XRP ledger in a production context, the best practice is to run your own server and send all your queries to it. See also https://xrpl.org/the-rippled-server.html#reasons-to-run-your-own-server
Issue Description
I use
info.validated_ledger.base_fee_xrp
andinfo.load_factor
fromserver_info
to calculate fee but sometime the response json is missinginfo.load_factor
, e.g. this responseSteps to Reproduce
try to request to s2 or s1 several times and you might encounter response that doesn't have
load_factor
Expected Result
server_info
should be consistentActual Result
load_factor
sometime is missing