New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Running python3 async_run.py #1
Comments
Two questions:
|
|
Interesting. Can you kindly change lines 1225 & 1226 from: to: This should give us more insight into what's happening. |
zations/669347494617942640/admins - Cannot connect to host api.meraki.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')], retrying in 1 second |
Self-signed certificate in certificate chain? |
nope there shouldn't be anything tryint to intervene. This is on my LAN and trying to communicate to the meraki. |
having similar issue when running on 1st organization script completes without issues. When running on 2nd organization (much larger device count) 2023-08-16 18:40:10 meraki.aio: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.36.0', 'api_key': '************************************498e', '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': 2, 'action_batch_retry_wait_time': 60, 'network_delete_retry_wait_time': 180, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 100, 'simulate': False, 'be_geo_id': None, 'caller': 'Healthcheck/22.12 OBrigg', 'use_iterator_for_get_pages': False, 'maximum_concurrent_requests': 5, 'version_warning_string': 'This library requires Python 3.7 at minimum. Python versions 3.6 and below are end of life and end of support per the Python maintainers, and your interpreter version details are: \nplatform.python_version_tuple()[0] = 3\nplatform.python_version_tuple()[1] = 11\nplatform.python_version is 3.11.4\nPlease consult the readme at your convenience: https://github.com/meraki/dashboard-api-python'} any insight would be appreciated |
Hi @bbaileyga1 , If the issue consists, kindly open a new issue. |
Someone else encountered this "self-signed certificate" problem, and it looks like it might be a problem with the Meraki SDK. |
The engineering team is not able to reproduce this error. |
Ran the following:
python3 async_run.py
Kindly select the organization ID you would like to query: 0
/Users/xxxx/meraki-health-check/async_run.py:1384: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Meraki AIO API Error (OrgID "XXXXXX", OrgName "XXXX"):
organizations, getOrganizationAdmins - None None, Reached retry limit: None
Traceback (most recent call last):
File "/Users/xxxx/meraki-health-check/async_run.py", line 1385, in
loop.run_until_complete(main())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/Users/xxxx/meraki-health-check/async_run.py", line 1241, in main
await async_check_org_admins(aiomeraki)
File "/Users/xxxx/meraki-health-check/async_run.py", line 646, in async_check_org_admins
for admin in org_admins:
UnboundLocalError: local variable 'org_admins' referenced before assignment
The text was updated successfully, but these errors were encountered: