-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL certificate verify failed #17
Comments
Hi @girmax. I just ran the same setup on my machine and it seems to be ok. That's going to make it difficult to troubleshoot. Given that it's an SSL error I think the first thing to check would be if you can get a response from your browser. That api is a little tricky to call from the browser, but see what you get with this: import stats_can
stats_can.get_changed_cube_list() and see if it retrieves something similar looking. Hope that helps, please report back what you find. |
hi @ianepreston . When i run fron anaconda env the following i get |
Hi @girmax, was this an issue in a Linux OS? I had a similar issue and it was solved by modifying the OpenSSL.cnf. |
@girmax Are you in a corporate network? If so, sounds like a CA certs issue to me. |
running the following on Python 3.7 Virtual env , Win 10
from stats_can import StatsCan
sc = StatsCan()
df = sc.table_to_df("271-000-22-01")
error code:
SSLError: HTTPSConnectionPool(host='www150.statcan.gc.ca', port=443): Max retries exceeded with url: /t1/wds/rest/getCubeMetadata (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
The text was updated successfully, but these errors were encountered: