Henning Holgersen
10/14/2022, 6:50 PMget_next_page_token
function to return just the nextToken=XYZ987
part of the url, but I get a “loop detected … identical token” error. Any ideas? The SDK documents a number of different paginators and one seems to address this nextURL pagination method, but I don’t know how to incorporate them in the tap.Henning Holgersen
10/14/2022, 6:52 PMaaronsteers
10/14/2022, 7:23 PMaaronsteers
10/14/2022, 7:23 PMHenning Holgersen
10/14/2022, 7:32 PMpage=2
from <https://rickandmortyapi.com/people?page=2>
?
I have been debugging the API responses a little closer, and there does indeed seem to be some strange behavior coming from there - so this probably isn’t on the meltano side.aaronsteers
10/14/2022, 7:39 PM2
or {page: 2}
both should work. In some scenarios, developers end up with very complex tokens, which they use for managing complex or nested paging loops. This one probably would be fine with a simple token, whatever seems appropriate.aaronsteers
10/14/2022, 7:40 PMNone
and that triggers the end of pagination.edgar_ramirez_mondragon
10/14/2022, 9:41 PMThe SDK documents a number of different paginators and one seems to address this nextURL pagination method, but I don’t know how to incorporate them in the tap.I’ve started a PR to document how to do that: https://github.com/meltano/sdk/pull/1074
Henning Holgersen
10/15/2022, 8:43 AM