→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎03-28-2024 04:27 PM - last edited on ‎04-01-2024 02:49 PM by Mercedes_O
Hello! I'm using the vulnerabilities API and am having some issues when trying to page through records.
I'm sending the first page request with:
vulnerabilities (pagination: { limit: 3, page: FIRST })
And receive the following in the response:
"pagination": {
"page": "FIRST",
"next": "eyJvZmZzZXQiOjB9",
"limit": 5,
"current": "eyJvZmZzZXQiOjB9"
}
I then request the second page with:
vulnerabilities(pagination: { limit: 5, page: NEXT, cursor: "eyJvZmZzZXQiOjB9" })
And receive the following response:
"pagination": {
"page": "NEXT",
"next": "eyJvZmZzZXQiOjV9",
"limit": 5,
"current": "eyJvZmZzZXQiOjV9"
}
As far as I can tell, this is not behaving correctly as next and current should not be the same in the response each time? I've tested pagination with other endpoints and those do return different values for the next and current properties.
An additional oddity is that the total property is always returned as 0 despite records being returned.
Any idea what's going on with the pagination here?
‎07-24-2024 10:16 AM
Hi,
I have the similar issue.
Total is not 0, but the next & current are the same , and if i call the NEXT every time, there is never an ending
here is an example of a call, i have ~4.000 vulnerabilities in this site so it should end after 9 calls, but don't stop requesting, because there always is a "next"
request count: 1
cursor :
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjB9",
"next": "eyJvZmZzZXQiOjB9",
"page": "FIRST"
}
request count: 2
cursor : eyJvZmZzZXQiOjB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjUwMH0=",
"next": "eyJvZmZzZXQiOjUwMH0=",
"page": "NEXT"
}
request count: 3
cursor : eyJvZmZzZXQiOjUwMH0=
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjEwMDB9",
"next": "eyJvZmZzZXQiOjEwMDB9",
"page": "NEXT"
}
request count: 4
cursor : eyJvZmZzZXQiOjEwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjE1MDB9",
"next": "eyJvZmZzZXQiOjE1MDB9",
"page": "NEXT"
}
request count: 5
cursor : eyJvZmZzZXQiOjE1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjIwMDB9",
"next": "eyJvZmZzZXQiOjIwMDB9",
"page": "NEXT"
}
request count: 6
cursor : eyJvZmZzZXQiOjIwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjI1MDB9",
"next": "eyJvZmZzZXQiOjI1MDB9",
"page": "NEXT"
}
request count: 7
cursor : eyJvZmZzZXQiOjI1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjMwMDB9",
"next": "eyJvZmZzZXQiOjMwMDB9",
"page": "NEXT"
}
request count: 8
cursor : eyJvZmZzZXQiOjMwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjM1MDB9",
"next": "eyJvZmZzZXQiOjM1MDB9",
"page": "NEXT"
}
request count: 9
cursor : eyJvZmZzZXQiOjM1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjQwMDB9",
"next": "eyJvZmZzZXQiOjQwMDB9",
"page": "NEXT"
}
request count: 10
cursor : eyJvZmZzZXQiOjQwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjQ1MDB9",
"next": "eyJvZmZzZXQiOjQ1MDB9",
"page": "NEXT"
}
request count: 11
cursor : eyJvZmZzZXQiOjQ1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjUwMDB9",
"next": "eyJvZmZzZXQiOjUwMDB9",
"page": "NEXT"
}
request count: 12
cursor : eyJvZmZzZXQiOjUwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjU1MDB9",
"next": "eyJvZmZzZXQiOjU1MDB9",
"page": "NEXT"
}
request count: 13
cursor : eyJvZmZzZXQiOjU1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjYwMDB9",
"next": "eyJvZmZzZXQiOjYwMDB9",
"page": "NEXT"
}
request count: 14
cursor : eyJvZmZzZXQiOjYwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjY1MDB9",
"next": "eyJvZmZzZXQiOjY1MDB9",
"page": "NEXT"
}
request count: 15
cursor : eyJvZmZzZXQiOjY1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjcwMDB9",
"next": "eyJvZmZzZXQiOjcwMDB9",
"page": "NEXT"
}
request count: 16
cursor : eyJvZmZzZXQiOjcwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjc1MDB9",
"next": "eyJvZmZzZXQiOjc1MDB9",
"page": "NEXT"
}
request count: 17
cursor : eyJvZmZzZXQiOjc1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjgwMDB9",
"next": "eyJvZmZzZXQiOjgwMDB9",
"page": "NEXT"
}
request count: 18
cursor : eyJvZmZzZXQiOjgwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjg1MDB9",
"next": "eyJvZmZzZXQiOjg1MDB9",
"page": "NEXT"
}
request count: 19
cursor : eyJvZmZzZXQiOjg1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjkwMDB9",
"next": "eyJvZmZzZXQiOjkwMDB9",
"page": "NEXT"
}
request count: 20
cursor : eyJvZmZzZXQiOjkwMDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjk1MDB9",
"next": "eyJvZmZzZXQiOjk1MDB9",
"page": "NEXT"
}
request count: 21
cursor : eyJvZmZzZXQiOjk1MDB9
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjEwMDAwfQ==",
"next": "eyJvZmZzZXQiOjEwMDAwfQ==",
"page": "NEXT"
}
request count: 22
cursor : eyJvZmZzZXQiOjEwMDAwfQ==
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjEwNTAwfQ==",
"next": "eyJvZmZzZXQiOjEwNTAwfQ==",
"page": "NEXT"
}
request count: 23
cursor : eyJvZmZzZXQiOjEwNTAwfQ==
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjExMDAwfQ==",
"next": "eyJvZmZzZXQiOjExMDAwfQ==",
"page": "NEXT"
}
request count: 24
cursor : eyJvZmZzZXQiOjExMDAwfQ==
Pagination-Details:
{
"limit": 500,
"current": "eyJvZmZzZXQiOjExNTAwfQ==",
"next": "eyJvZmZzZXQiOjExNTAwfQ==",
"page": "NEXT"
}
is there a solution for this?
‎04-03-2024 09:43 AM
Hello there!
Would you mind creating a support case so our integration team can have a look?
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now