nRFCloud API pageNextToken issue

Hello,

I ma gathering some data from nRFCloud API, and I noticed a small issue with the pageNextToken.
I noticed this on https://api-docs.nrfcloud.com/#tag/FOTA-Job-Executions/operation/ListFOTAJobExecutionsForDevice , but haven't checked other endpoints.

I look at a device with 20 FOTAJobExecution. When setting the pageLimit to 20, I retreive the entire list, but there is a pageNextToken.
Reaching the endpoint again, with this pageNextToken results in an empty response.

Same goes with 2 calls with pageLimit set to 10.

It looks like there is an issue with pageNextToken. Sounds like small issue, like a bad rounding, or a >= instead of <.

  • Hi Vincent,

    Thanks for the report and good timing. We're actually in the process of rolling out a significantly improved FOTA experience with support for cohorts, staged rollouts, fleet-wide adoption tracking, and a more streamlined workflow overall.

    We'd love to help you transition to the new experience so you can take advantage of these improvements and more easily extract information via API. You can find an overview of the changes rolling out here: https://docs.nrfcloud.com/docs/nrfcloud/fota-transition

    Given how you're using the API today, we'd be happy to set up a short call to make sure we understand your use case and can give you a recommendation on best path forward. Would sometime early next week work?

    Best regards,
    Natalie

Related