Skip to content

SSLError - Is it my system's security level? #405

Answered by theOehrly
ac1987 asked this question in Q&A
Discussion options

You must be logged in to vote

@ac1987 I can't really tell what the root issue here is. Most likely the machine is missing one of the required root certificates. Either because it is an old OS maybe. Or because of some IT security policy. (Or an old version of Python?)

In any case, you should be able to use the HTTP endpoint of Ergast instead of HTTPS by overwriting this at the beginning of every script that you run.

Example (not tested, but I think this should work):

from fastf1.ergast import interface
interface.BASE_URL = 'http://ergast.com/api/f1'

.... your other code ....

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ac1987
Comment options

You must be logged in to vote
1 reply
@theOehrly
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants