aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
ghadi 2020-01-29T21:48:30.008200Z

@kenny I got bit by an AWS paginator today

ghadi 2020-01-29T21:48:35.008400Z

I received :PaginationToken ""

ghadi 2020-01-29T21:49:01.009Z

at the end of a series of API calls

ghadi 2020-01-29T21:49:12.009400Z

(for the resourcegroupstaggingapi)

kenny 2020-01-29T21:52:41.012200Z

Oh shoot. I've hit that before too and thought we had a check for that. Just looked and it's not there anymore! The original page following code I wrote definitely checked for that. A month or so ago I rewrote it so it could follow pages from any source and I left that str/blank? check out! Ahh. Does that api consistently return "" for the pagination token when there are no more next pages?

ghadi 2020-01-29T21:53:10.012400Z

depends on the API

ghadi 2020-01-29T21:53:17.012900Z

that one does

ghadi 2020-01-29T21:53:32.013400Z

other APIs seem to omit the key entirely

kenny 2020-01-29T21:54:08.014100Z

Have you seen an api that does both -- sometimes blank and sometimes omitted?

ghadi 2020-01-29T21:54:58.014300Z

haven't looked

kenny 2020-01-29T21:57:10.015800Z

That might've been what happened to us last week. Same code has been running since then and has not hit that issue. Thanks for that info though! Just added the str/blank? check back in. I'm sure that will save some time in the future 🙂