SebastianJames55 / mind-reader

An app aimed to provide mental support to people who are going through tough times.
https://mind-reader.sebastianjames55.repl.co/api/v1/
MIT License
4 stars 0 forks source link

SSL verification error on connection to mindsdb cloud #9

Open SebastianJames55 opened 1 year ago

SebastianJames55 commented 1 year ago

Try connecting to mindsdb cloud from a windows 10 machine using mindsdb_sdk.connect(login=, password=) Error:

(<class 'requests.exceptions.SSLError'>, SSLError(MaxRetryError("HTTPSConnectionPool(host='cloud.mindsdb.com', port=443): Max retries exceeded with url: /cloud/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)')))")), <traceback object at 0x00000195B62F4400>) 

I tried the following:

os.environ['REQUESTS_CA_BUNDLE'] = os.path.join(os.path.dirname(__file__), 'mind-reader-venv\\Lib\\site-packages'
                                                                           '\\certifi\\cacert.pem')

Probable cause behind the error: sys proxy setup.