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
Problem downloading a file via http: SSLCertVerificationError #186
Comments
@MarkWieczorek you can pass arguments to downloader = pooch.HTTPDownloader(verify=False)
fname = pooch.retrieve(url, hash, downloader=downloader)
# or
fname = POOCH.fetch(“mefile.txt”, downloader=downloader) They are probably using an expired SSL certificate. Do you get the same error when accessing the website through a browser? Alternatively, you could try using |
Thanks. That worked. For reference, the file downloads fine from a web browser, but I had the same problem when using http and https with The only thing that would be useful in this circumstance would be to
|
Yeah, this is definitely something that should be fixed on their end as well.
I imagine they are using the
Agreed! See #187 Closing this as it seems to have been resolved. |
I found two solutions to this problem:
|
I am having problems using pooch to download files of the Earth's magnetic field from the SWARM mission that are available on an ESA web site. The filename is
https://swarm-diss.eo.esa.int/?do=download&file=swarm%2FLevel2longterm%2FMLI%2FSW_OPER_MLI_SHA_2D_00000000T000000_99999999T999999_0501.ZIP
and the errors include
and
I tried using pythons
requests
to do this manually, and got similar errors.With
requests
, I found that I could specify the optionverify=False
, which according to the docsSo, if there is not a simple solution to this problem, perhaps pooch could allow you to specify
verify
as an optional variable which then gets passed on to requests. I understand that this is non ideal, and this generates the warningHowever, if we are verifying the hash of the file, then there is no security issue.
The text was updated successfully, but these errors were encountered: