https://medium.com/magnetcoop/monitoring-iot-devices-with-amazon-cloudwatch-in-clojure-9f7b2b6c2c66
@kenny I got bit by an AWS paginator today
I received :PaginationToken ""
at the end of a series of API calls
(for the resourcegroupstaggingapi
)
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?
depends on the API
that one does
other APIs seem to omit the key entirely
Have you seen an api that does both -- sometimes blank and sometimes omitted?
haven't looked
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 🙂