-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
account_lines query missing trustlines, with subsequent query returning invalid parameters (Version:1.9.4) #4354
Comments
This might be related to #4340 |
It seems to me result set is pulled then artificially filtered after in viewing page. |
I've been able to reproduce this, and should have a fix PR soon. |
* Resolves XRPLF#4340 and XRPLF#4354 * Add unit test that walks all the object types and verifies that all of their indexes can work as a marker.
* Resolves XRPLF#4340 and XRPLF#4354 * Add unit test that walks all the object types and verifies that all of their indexes can work as a marker.
#4361 resolves the issue with the Please read the description of that PR for more details. |
* Resolves XRPLF#4340 and XRPLF#4354 * Add unit test that walks all the object types and verifies that all of their indexes can work as a marker.
* Resolves XRPLF#4340 and XRPLF#4354 * Add unit test that walks all the object types and verifies that all of their indexes can work as a marker.
* Resolves XRPLF#4340 and XRPLF#4354 * Add unit test that walks all the object types and verifies that all of their indexes can work as a marker.
* Resolves XRPLF#4340 and XRPLF#4354 * Add unit test that walks all the object types and verifies that all of their indexes can work as a marker.
* Resolves XRPLF#4340 and XRPLF#4354 * Add unit test that walks all the object types and verifies that all of their indexes can work as a marker.
Issue Description
Two likely related problems seen when querying trustlines for account
radT5HJfA6yWP2yvukhG1KxyQq38SybCZw
, which at the time of writing has 207 trustlines.Missing Trustlines
When making an
account_lines
query/queries covering the first 200 trustlines, only 198 trustlines are found - number 199 and 200 (as seen in https://xrpscan.com/account/radT5HJfA6yWP2yvukhG1KxyQq38SybCZw) are missing.Using requests with a limit of 10, it is seen that the request for trustlines 171 -180 only returns 171-179. The next request returns 180 - 189 (10 trustlines), and the next request 190 - 198 (again only 9).
Running queries with a limit of 1, a request to obtain trustline 177 (
ASC
issued byr3qWgpz2ry3BhcRJ8JE6rxM8esrfhuKp4R
) returns 0 lines.Failed subsequent query
In both of these scenarios, when making a subsequent request (using the previous response's marker) to get further trustlines, the query fails with an error of 'Invalid parameters.'
For example, if using a limit of 200:
Using a limit of 100:
Using a limit of 1:
However, this problem is not seen if some other limits are used, such as 5, 60 or 199. For example, using a limit of 199, the first request returns 198 trustlines, and the second request successfully returns 199 to 207.
Steps to Reproduce
Count the response lines.
Using the marker from the above's response, make another query. For example:
Expected Result
The first response should return trustlines 1 - 200 and the second request should return trustlines 201 - 207.
Actual Result
The first request returns trustlines 1 - 198 and the second request returns an invalid params response:
Additional Information
Based on my application logs, I can see an
account_lines
query (with no specific limit set) successfully retrieved all of the account's trustlines at 7:07pm UTC the 25th November, but failed when attempted at 7pm on the 26th. My code did not change during that time and requests were being made to wss://xrplcluster.com/ via the JavaScript xrpl library.The text was updated successfully, but these errors were encountered: