Yes.
There's a bug in rest_session.py, the loop breakout code is flawed (in both sync and async libraries), I reported it on github and to Meraki support, but afaik they never fixed it, I made my own patch. It was in a post on this forum but it's been 'archived' and I can't access it.
Look for _get_pages_legacy in whichever rest_session.py you are using
Add the indicated snippet of code...
async def _get_pages_legacy(
self,
metadata,
url,
params=None,
total_pages=-1,
direction="next",
event_log_end_time=None,
):
if type(total_pages) == str and total_pages.lower() == "all":
total_pages = -1
elif type(total_pages) == str and total_pages.isnumeric():
total_pages = int(total_pages)
metadata["page"] = 1
async with await self.request(metadata, "GET", url, params=params) as response:
results = await response.json(content_type = None)
# For event log endpoint when using 'next' direction, so results/events are sorted chronologically
if (
type(results) == dict
and metadata["operation"] == "getNetworkEvents"
and direction == "next"
):
results["events"] = results["events"][::-1]
###### added snippet
elif (
type(results) == dict
and metadata["operation"] == "getNetworkEvents"
and direction == "prev"
):
if len(results["events"]) == 0:
return results
###### to here
links = response.links