Hi all, I have an issue that looks like a bug, when I use any of these two URLs I hit an error trying to get the key "lanIp" others work just fine "mac", "serial". URL1: {base_url}/networks/{network_id}/devices URL2: {base_url}/organizations/{org_id}/devices/statuses Example1: [ERROR] 2023-04-19T18:22:38.905Z 85dfc7d6-c3af-4ade-84b0-24765ba1b00d Exception on / [POST] Traceback (most recent call last): File "/var/task/flask/app.py", line 2528, in wsgi_app response = self.full_dispatch_request() File "/var/task/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "/var/task/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/var/task/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/var/task/c****.py", line 136, in index msg_reply += f"\n Modelo: {devices['model']} Serial: {devices['serial']} IP: {devices['lanIp']} mac: {devices['mac']}" KeyError: 'lanIp' Example2: Making a small change, it still doesn't work using key "lanIp" but it works Ok with others like "serial", "mac", etc. [ERROR] 2023-04-19T18:29:20.123Z 1714224b-b550-43c7-a11b-cd34e4a3408b Exception on / [POST] Traceback (most recent call last): File "/var/task/flask/app.py", line 2528, in wsgi_app response = self.full_dispatch_request() File "/var/task/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "/var/task/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/var/task/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/var/task/c****.py", line 136, in index msg_reply += f"\n{devices['lanIp']}" KeyError: 'lanIp' This is the API info and I saw I received the right response, however, I receive the errors shown. https://developer.cisco.com/meraki/api-v1/#!get-network-devices [
{
"name": "My AP",
"lat": 37.4180951010362,
"lng": -122.098531723022,
"serial": "Q234-ABCD-5678",
"mac": "00:11:22:33:44:55",
"model": "MR34",
"address": "1600 Pennsylvania Ave",
"notes": "My AP's note",
"lanIp": "1.2.3.4",
"tags": " recently-added ",
"networkId": "N_24329156",
"beaconIdParams": {
"uuid": "00000000-0000-0000-0000-000000000000",
"major": 5,
"minor": 3
},
"firmware": "wireless-25-14",
"floorPlanId": "g_1234567"
}
] https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-statuses {
"name": "My AP",
"serial": "Q234-ABCD-5678",
"mac": "00:11:22:33:44:55",
"publicIp": "123.123.123.1",
"networkId": "N_24329156",
"status": "online",
"lastReportedAt": "2018-02-11T00:00:00.090210Z",
"lanIp": "1.2.3.4",
"gateway": "1.2.3.5",
"ipType": "dhcp",
"primaryDns": "8.8.8.8",
"secondaryDns": "8.8.4.4",
"productType": "wireless",
"components": { "powerSupplies": [] },
"model": "MR34",
"tags": [ "tag1", "tag2" ]
} Thanks.
... View more