- Notifications
You must be signed in to change notification settings - Fork 166
Closed
Labels
Description
Python version installed
3.10
Meraki library version installed
meraki==1.37.2
Have you reproduced the issue with the latest version of this library? And with the latest version of Python?
Yes
OS Platform
MacOS 13.5.2
Describe the bug
On some computers (3 people reported this so far - two of them are Cisco folks with standard Cisco IT Macs.), the async operation for getOrganizationAdmins
results in a self-sign certificate error (?!) while the equivalent sync operation works fine.
How can we replicate the problem you're reporting?
Run the snippet below on an affected computer.
Expected behavior
A clear and concise description of what you expected to happen instead, and why.
Code snippets
import asyncio import meraki import meraki.aio async def main(): async with meraki.aio.AsyncDashboardAPI( api_key=api_key, output_log=False, suppress_logging=False, maximum_concurrent_requests=5, nginx_429_retry_wait_time=2, wait_on_rate_limit=True, maximum_retries=100, ) as aiomeraki: try: org_admins_async = await aiomeraki.organizations.getOrganizationAdmins(org_id) print(f"Async admins: {len(org_admins_async)}") except Exception as e: print(f"Some other ERROR: {e}") org_id = 1215707 api_key="key-here" print(50*"*", "\nSync Request\n") dashboard = meraki.DashboardAPI(api_key=api_key, suppress_logging=False) org_admins_sync = dashboard.organizations.getOrganizationAdmins(org_id) print(f"Sync admins: {len(org_admins_sync)}") print("\n\n", 50*"*", "\nAsync Request\n") loop = asyncio.new_event_loop() loop = asyncio.get_event_loop() loop.run_until_complete(main())