Hello, I used to run python scripts that calls open route services correctly
But now, I have a problem to run a simple script, seems to me that the api service is not available.
import openrouteservice
coords = [[8.34234,48.23424],[8.34423,48.26424]] ## I tried also with (
client = openrouteservice.Client(key=token2) # token2 is my personal API key
routes = client.directions(coords)
print(routes)
I 've got the following error:
SSLError: HTTPSConnectionPool(host=‘api.openrouteservice.org’, port=443): Max retries exceeded with url: /v2/directions/driving-car/json (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)’)))
Do I need to download a certificate? my token works properly, I tested it with my browser,
Do you know how to fix this problem?
Many thanks in advance,
Vivian.
I’m getting this error as well. My certificate is valid until 2030. The API works fine from Postman extension in VS Code. Python works fine on another M1 Mac. What’s the next troubleshooting step?
I would recommend checking out this article for the error CERTIFICATE_VERIFY_FAILED and get the solution. Maybe it will be helpful! I found the solution from it.