chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

pyTransition : SSLError when creating instance #988

Closed tibobliss closed 1 week ago

tibobliss commented 1 week ago

I am using the Python library and trying to create a Transition instance from connection credentials. Here is what I use:

transition_instance = Transition("https://instancename.transition.city", "email", "password")

And here is the result I get every time:

SSLError: HTTPSConnectionPool(host='stm.transition.city', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)')))

greenscientist commented 1 week ago

@tibobliss , the first theory would be a lack on update on the operating system side.

greenscientist commented 1 week ago

Closing as this is a system issue, not due to the library

tahini commented 1 week ago

@greenscientist maybe an explanation of how it was solved could help people hitting this

greenscientist commented 6 days ago

People need to make sure they have the latest Root certificate list on their system to ensure that SSL works with every site. (I will not post here some work around, there's plenty on the rest of the internet :) )