08-28-2024 02:59 AM
Hi Team,
We are getting the following errors for the Meraki API endpoint GET calls. I am posting some of the sample calls here.
08-28-2024 05:15 AM
Hey @Lalana
I am curious how/what method is used to run these calls. Meraki uses the API key for authentication and not any kind of certificate so it sounds like whatever application you are using is the problem. Can you run the same API call using Postman or in the browser?
08-28-2024 07:10 AM
Hi KH,
From postman it works fine, we are using a python script which uses async api calls, pasting the code snippet here:
08-29-2024 01:24 PM
Have you got a proxy in your organisation or anything doing SSL inspection?
The "self signed" certificate is the suspicous bit. You are talking to something - but it is not Meraki.
08-29-2024 09:22 PM
Hi Philip,
Thanks for the response. The issue got resolved after adding certificate_path
async with meraki.aio.AsyncDashboardAPI(api_key, maximum_concurrent_requests=1, maximum_retries=4, print_console=True, suppress_logging=False, certificate_path='certificate/path'
It seems that the issue is related to this bug - aiohttp module -https://github.com/aio-libs/aiohttp/issues/955
Thanks & Regards,
Lalana
08-29-2024 09:23 PM
Wow. Good find.
09-19-2024 07:23 AM
Hi @Lalana
I have the same issue so I added as suggested in your post, but here is the error message:
"self._sslcontext.load_verify_locations(certificate_path)
FileNotFoundError: [Errno 2] No such file or directory"
Do you have an idea?
regards,
09-26-2024 09:09 AM
Hi Matq,
You can add the following to your script:
import certifi
09-26-2024 01:27 PM
So demure. So mindful.
I like it!
09-30-2024 10:42 PM
Thank you Philip
09-26-2024 06:51 PM
HI,
thanks for your answer and help. Really appreciate it.
I have found the solution.
in application > Python 3.12, i need to execute the program: "install certificates.command"
Then the script will work.
regards,
Mathieu
09-30-2024 10:43 PM
Thanks Matq for sharing.
08-29-2024 09:26 PM
Thanks, Would like to Thank Gandhi Racharla and Niraj Gadhe (from Cisco) for helping on this.
08-30-2024 10:19 AM
Hi! Moderator here. I’m just going to edit your post to remove the email addresses. Appreciate you sharing your words of thanks though!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide