-
Notifications
You must be signed in to change notification settings - Fork 18
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
How to GET only the newest records? #380
Comments
Hello @scizmeli, Thanks for raising these issues. For your first issue, you need to set As for your second URL, you used |
Thank you @kelvinqian00 for your fast response. But now another source of confusion is here. There are sometimes big differences between values of I will open another ticket to follow up on the 500 error. |
@scizmeli
|
@scizmeli So upon further inspection of your screenshot depicting timestamp and stored values, there does seem to be inconsistencies that I had overlooked in my original response, so apologies for that. Do you know how your LRP sends statements? Is there a buffer or a queue in place that may create delays for posting? |
Hello,
I am trying to retrieve statements incrementally.
In the first request our data analysis service gets ALL the records. After that I would like to be able to retrieve only the newest records that arrived since the last retrieval. I construct the URL in the following way :
statements?limit=50&from=279e08f4-9ced-4dd9-a101-18c261bdadc2
where the UUID belongs to the record that has the timestamp that is the one before the newest (so I expect to GET only 1 record). But I again GET 50 records instead of just 1.
I then used the
since
parameterhttps://.../xapi/statements?limit=50&from=2024-03-08T13:47:39+00:00
where the timestamp used is the one before the newest.
This gives me http 500 Error.
Where am I doing wrong? how do I achieve incremental retrievals with only the newest records?
thanks
The text was updated successfully, but these errors were encountered: