I'm having issues with getting packet loss and latency for devices using the getOrganizationDevicesUplinksLossAndLatency API call.
There doesn't seem to be any reason or state that is causing this, it just intermittently fails to return valid data.
dashboard = meraki.DashboardAPI(api_key, suppress_logging=True)
try:
response = dashboard.organizations.getOrganizationDevicesUplinksLossAndLatency(org_id, serial=serial)
except meraki.APIError as e:
print(f"Error retrieving data: {e}")
print(response)
The version of the meraki library is 2.0.3.
The frustrating thing is that it isn't an exception happening, nor any strange http return code.
The response looks just like this:
[{'networkId': '<network_id>',
'serial': '<serial#>',
'uplink': None,
'ip': None,
'timeSeries': [{'ts': '<date_time_stamp>', 'lossPercent': None, 'latencyMs': None},
...<several more entries>]}]
It doesn't matter if i query this by serial number or if i set total_pages="all" and don't provide the serial, and thus getting the data for all devices.
Its also not linked to any specific device within the organization, nor is it limited to a single organization.
It also doesn't matter if i use the async version of the API call.
The problem is reproducable with the above bare bones code when it happens.
If it happens it tends to stick for quite a while (i haven't exactly determined in minutes or hours, but it's definitely > 15 min)
But it will also disappear again after that time, only to return some undetermined time later.
I have noticed the time series to sometimes contain one or more entries with None values, when that happens i just ignore those entries if there is at least 1 entry that does return valid data.
I haven't had the uplink and ip address show up as None before though.
I'm at a loss as to why this is happening, and i'm wondering if more people have seen this issue, and may have found a solution for it?
Just one extra note: It seems that this is the only API call with which i am experiencing this. I'm doing about a dozen API calls for the organization and this is the only one that's turning up with "garbage".
Kind Regards,
Marco.