benw-at-birdie
10/01/2021, 7:19 AMnextPageUri
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!benw-at-birdie
10/01/2021, 7:32 AMnext_page_token_jsonpath = None
works as expected - only the first page of results is downloaded and the tap ends without error.aaronsteers
10/01/2021, 3:16 PMLoop detected in pagination
is triggered whenever the same next page token is returned twice in a row. In your case, can you confirm if the 'page=2' portion is indeed coming back as the next page token, even on the second page?aaronsteers
10/01/2021, 3:17 PMaaronsteers
10/01/2021, 3:19 PMpage 2
is indeed returning the same token pointing back to itself again as next page. Another possibility - and this is most likely - is that you are getting "page 1" twice in a row, in which case you may need to change how you override "get_url_params()" to make sure it sends the proper request for page two. This probably is going to require some advanced parsing of that token to set the correct url args.aaronsteers
10/01/2021, 3:19 PMbenw-at-birdie
10/01/2021, 3:20 PMbenw-at-birdie
10/01/2021, 5:25 PMaaronsteers
10/01/2021, 6:26 PM