gplately icon indicating copy to clipboard operation
gplately copied to clipboard

SSL error prevents downloading files in certain cases

Open brmather opened this issue 2 years ago • 6 comments

From a colleague:

I got the same SSL error with the code you suggested as the gplate.download.DataServer. I did not get the error on Friday when I was working from home. So, it must be a firewall issue and I’ll reach out to our IT folks here.

Maybe this is because WebDAV doesn’t use SSL and is blocked by some IT systems? This should go away when we migrate plate models to Zenodo, but will probably persist for the age and spreading rate grids on NCI.

brmather avatar Nov 15 '23 00:11 brmather

image001

brmather avatar Dec 15 '23 03:12 brmather

have you tried pip install certifi and sudo "Install Certificates.command"?

michaelchin avatar Dec 15 '23 04:12 michaelchin

Can you try openssl s_client -connect earthbyte.org:443 -servername earthbyte.org?

And also run these python code

from requests.utils import DEFAULT_CA_BUNDLE_PATH
print(DEFAULT_CA_BUNDLE_PATH)

Thanks

michaelchin avatar Dec 15 '23 11:12 michaelchin

There possible causes I can think of

  • CA certificates not available on client
  • Server sent incomplete SSL certificate chain
  • Proxy/firewall messed up with certain servers(due to their configuration)

Possible solution: set verify=false in requests.get()

michaelchin avatar Dec 16 '23 05:12 michaelchin

waiting for customer's response

michaelchin avatar Jun 04 '24 07:06 michaelchin

No response from the client for a few months. Nothing can be done for now. Put this issue on ice until we get the client's response.

michaelchin avatar Jul 11 '24 06:07 michaelchin