Hi all, I need a bit of help getting pagination wo...
# singer-tap-development
b
Hi all, I need a bit of help getting pagination working for a tap I’m developing for this endpoint using the SDK: https://api.cqc.org.uk/public/v1/changes/providers. The api returns a
nextPageUri
like this
changes/provider?page=2&perPage=1000&startTimestamp=2019-03-10T12:30:00Z&endTimestamp=2019-03-24T12:30:00Z&partnerCode=Birdie+Care
and the field is empty for the last page. But setting
next_page_token_jsonpath = "$.nextPageUri"
gives the following error. “Loop detected in pagination. Pagination token /changes/provider?page=2&perPage=1000&startTimestamp=2019-03-10T123000Z&endTimestamp=2019-03-24T123000Z&partnerCode=Birdie+Care is identical to prior token.” The tap is also outputting the results from the first page of results twice 🤷 . I’m wondering if it’s something configured elsewhere in the tap that is causing this. Any tips on how to debug would be most welcome!