since the URL parameters were not applied from the previous next link, so the same resource as the initial request ends up being fetched, containing the same next link.
Loop is detected by the SDK and an error is thrown with the message
RuntimeError: Loop detected in pagination. Pagination token mock-store.myshopify.com/api/2022-01/checkouts.json?limit=50&page_info=2 is identical to prior token.
Going forward, we should upgrade this tap to a newer version of the SDK that supports pagination and other similar features to abstract away complexities like this fix addresses.
Error scenario
An initial request is made to
The initial request response contains a
next
link toA second request is made, in theory to
but actually is
since the URL parameters were not applied from the previous
next
link, so the same resource as the initial request ends up being fetched, containing the samenext
link.Loop is detected by the SDK and an error is thrown with the message
Going forward, we should upgrade this tap to a newer version of the SDK that supports pagination and other similar features to abstract away complexities like this fix addresses.