indexing (pagination) question for the getPrunableMessages call

Hi devs,

I wonder why these two calls return the identical result:

https://testardor.jelurida.com/nxt?requestType=getPrunableMessages&chain=2&account=ARDOR-S3R8-B55Z-BHGJ-FWUCT&otherAccount=ARDOR-2LLJ-JRUA-M9X9-2V6EB&firstindex=200&lastIndex=299&timestamp=102856928

https://testardor.jelurida.com/nxt?requestType=getPrunableMessages&chain=2&account=ARDOR-S3R8-B55Z-BHGJ-FWUCT&otherAccount=ARDOR-2LLJ-JRUA-M9X9-2V6EB&firstindex=700&lastIndex=799&timestamp=102856928

My expectation would be, that I receive different chunks of all messages that have been sent between both accounts. If there were less than 800 messages in total (between now and timestamp), I would expect an empty array as response.

Any help here is much appreciated, thanks!

Using POST instead of GET solved the issue.

1 Like

Caching problems surely. POSTs aren't cached so using POST is a safe bet to prevent this kind of issues. Doing any kind of integration I would suggest sticking with POST.

Actually, the problem with the above queries isn't about cache. It's a mistyped parameter firstindex . Should be firstIndex.

2 Likes