The problem is intermittent, so it may take some tries to reproduce. Be sure to keep updating the ledger index with the most recent one as new ledgers are closed.
Expected Result
The API should either return a response in the expected format or an error message.
In some cases the response claims to be a success but it contains the wrong data, apparently some sort of status update on the status of acquiring the requested ledger. Looks like a Ledger Request Object.
Tested using the xrplcluster.com servers running 2.2.0-rc1, but I think this API hasn't been changed much if at all since #4212 two years ago so the problems probably exist in older versions.
The s1.ripple.com cluster mostly goes to Clio servers; I haven't been able to reproduce on there.
Issue Description
When querying for a recent ledger by index, sometimes the result doesn't match the expected format.
Steps to Reproduce
Make WebSocket API requests such as the following, replacing the ledger index with the most recent one:
The problem is intermittent, so it may take some tries to reproduce. Be sure to keep updating the ledger index with the most recent one as new ledgers are closed.
Expected Result
The API should either return a response in the expected format or an error message.
Example valid response (with non-empty changes):
Example expected error response if the ledger index is too high:
Actual Result
In some cases the response claims to be a success but it contains the wrong data, apparently some sort of status update on the status of acquiring the requested ledger. Looks like a Ledger Request Object.
Environment
Tested using the xrplcluster.com servers running 2.2.0-rc1, but I think this API hasn't been changed much if at all since #4212 two years ago so the problems probably exist in older versions.
The s1.ripple.com cluster mostly goes to Clio servers; I haven't been able to reproduce on there.