Python SDK 1.12.0 and getDeviceCameraWirelessProfiles

webfrank
Getting noticed

Python SDK 1.12.0 and getDeviceCameraWirelessProfiles

Hi,

  I was working with the latest Python SDK to retrieve Camera settings and it seems there is something wrong with this method.

If I try to get camera wireless profiles using the HTTP endpoint from postman, {{baseUrl}}/devices/:serial/camera/wirelessProfiles, it works as expected, if I try the same with the SDK I got 404 error. The URL printed on on console by the SDK is correct and if I use it with postman it works.

Something weird is appening inside the SDK.

 

An excerpt from the logs:

2021-09-07 17:42:56 meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.12.0', 'api_key': '************************************254a', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None, 'use_iterator_for_get_pages': False}

2021-09-07 17:42:56 meraki: DEBUG > {'tags': ['camera', 'configure', 'wirelessProfiles'], 'operation': 'getDeviceCameraWirelessProfiles', 'method': 'GET', 'url': '/devices/xxxx-xxxx-xxxx/camera/wirelessProfiles', 'params': None}

2021-09-07 17:42:56 meraki: INFO > GET https://api.meraki.com/api/v1/devices/xxxx-xxxx-xxxx/camera/wirelessProfiles

2021-09-07 17:42:57 meraki: ERROR > camera, getDeviceCameraWirelessProfiles - 404 Not Found, b' '

2021-09-07 17:44:18 meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.12.0', 'api_key': '************************************254a', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None, 'use_iterator_for_get_pages': False}

2021-09-07 17:44:18 meraki: DEBUG > {'tags': ['camera', 'configure', 'wirelessProfiles'], 'operation': 'getDeviceCameraWirelessProfiles', 'method': 'GET', 'url': '/devices/xxxx-xxxx-xxxx/camera/wirelessProfiles', 'params': None}

2021-09-07 17:44:18 meraki: INFO > GET https://api.meraki.com/api/v1/devices/xxxx-xxxx-xxxx/camera/wirelessProfiles

2021-09-07 17:44:18 meraki: ERROR > camera, getDeviceCameraWirelessProfiles - 404 Not Found, b' '

2021-09-07 17:48:25 meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.12.0', 'api_key': '************************************254a', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None, 'use_iterator_for_get_pages': False}

2021-09-07 17:48:25 meraki: DEBUG > {'tags': ['camera', 'configure', 'videoLink'], 'operation': 'getDeviceCameraVideoLink', 'method': 'GET', 'url': '/devices/xxxx-xxxx-xxxx/camera/videoLink', 'params': {}}

2021-09-07 17:48:25 meraki: INFO > GET https://api.meraki.com/api/v1/devices/xxxx-xxxx-xxxx/camera/videoLink

2021-09-07 17:48:26 meraki: INFO > camera, getDeviceCameraVideoLink - 200 OK

2021-09-07 17:49:15 meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.12.0', 'api_key': '************************************254a', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None, 'use_iterator_for_get_pages': False}

2021-09-07 17:49:15 meraki: DEBUG > {'tags': ['camera', 'monitor', 'analytics', 'live'], 'operation': 'getDeviceCameraAnalyticsLive', 'method': 'GET', 'url': '/devices/xxxx-xxxx-xxxx/camera/analytics/live', 'params': None}

2021-09-07 17:49:15 meraki: INFO > GET https://api.meraki.com/api/v1/devices/xxxx-xxxx-xxxx/camera/analytics/live

2021-09-07 17:49:16 meraki: INFO > camera, getDeviceCameraAnalyticsLive - 200 OK
0 Replies 0
Get notified when there are additional replies to this discussion.