toddrob99 / MLB-StatsAPI

Python wrapper for MLB Stats API
GNU General Public License v3.0
539 stars 100 forks source link

SSLError when hitting statsapi #110

Closed kfinneman closed 1 year ago

kfinneman commented 1 year ago

Starting getting this error today for some reason.(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))

I am hitting the statsapi module. when I do requests it works but don't really want to type to whole url since I am hitting a bunch of different endpoints haha

toddrob99 commented 1 year ago

This type of error is usually due to a proxy server issue.

kfinneman commented 1 year ago

Any tips on how to fix it?

toddrob99 commented 1 year ago

It should work the same whether you use this MLB-StatsAPI module or directly with requests, since that's what this wrapper module uses. I'm guessing you have proxy info set somewhere when you use requests but not where you're using the wrapper. Without knowing any details of your network I'm not sure what else I can do to help.

kfinneman commented 1 year ago

Thank you!