Hi Team,
We are getting the following errors for the Meraki API endpoint GET calls. I am posting some of the sample calls here.
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?
Hi KH,
From postman it works fine, we are using a python script which uses async api calls, pasting the code snippet here:
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.
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
Wow. Good find.
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,
Hi Matq,
You can add the following to your script:
import certifi
So demure. So mindful.
I like it!
Thank you Philip
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
Thanks Matq for sharing.
Thanks, Would like to Thank Gandhi Racharla and Niraj Gadhe (from Cisco) for helping on this.
Hi! Moderator here. I’m just going to edit your post to remove the email addresses. Appreciate you sharing your words of thanks though!