mischal
10/22/2022, 9:06 PMaaronsteers
10/22/2022, 9:23 PMmischal
10/22/2022, 9:30 PMmischal
10/22/2022, 9:31 PMmischal
10/22/2022, 9:31 PMmischal
10/22/2022, 9:31 PMmischal
10/22/2022, 9:32 PMmischal
10/22/2022, 9:32 PMaaronsteers
10/22/2022, 9:33 PMaaronsteers
10/22/2022, 9:35 PMmischal
10/22/2022, 9:43 PMmischal
10/22/2022, 9:43 PMmischal
10/22/2022, 9:44 PMmischal
10/22/2022, 9:44 PMmischal
10/22/2022, 9:44 PMmischal
10/22/2022, 9:45 PMmischal
10/22/2022, 9:45 PMReuben (Matatika)
10/23/2022, 12:06 AM/data_api/v1/messages?updated_since=2022-10-22Ti4:52:00&page_size=100
2. Successful response from API with next_uri_page of /data_api/v1/messages?created_since=2022-10-20T16%3A23%3A46.901000&created_to=2022-10-27T14%3A52%3A00&page_size=100
3. Next request to next_uri_page value (/data_api/v1/messages?created_since=2022-10-20T16%3A23%3A46.901000&created_to=2022-10-27T14%3A52%3A00&page_size=100)
4. Successful response from API with same next_uri_page value as previous response (/data_api/v1/messages?created_since=2022-10-20T16%3A23%3A46.901000&created_to=2022-10-27T14%3A52%3A00&page_size=100)
5. Tap throws RuntimeError: Loop detected in pagination. Pagination token /data_api/v1/messages?created_since=2022-10-20T16%3A23%3A46.901000&created_to=2022-10-27T14%3A52%3A00&page_size=100 is identical to prior token.
Doesn't sound like an SDK issue. Can you use something like Postman or cURL to manually verify the two requests do not contain the same next_uri_page value in the response body?Reuben (Matatika)
10/23/2022, 12:21 AMnext_page_token_jsonpath = "$.next_uri_page"
and
def get_next_page_token(
self, response: requests.Response, previous_token: Optional[Any]
) -> Optional[Any]:
"""Return a token for identifying next page or None if no more pages."""
all_matches = extract_jsonpath(self.next_page_token_jsonpath, response.json())
return next(iter(all_matches), None)