-
Notifications
You must be signed in to change notification settings - Fork 9
Requests to JPL failing #75
I installed SolarMach today.
With the minimal example (and other examples) I get the error:
/requests.exceptions.SSLError: HTTPSConnectionPool(host='ssd.jpl.nasa.gov', port=443): Max retries exceeded with url: /api/horizons_file.api (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')))
which I repeated with:
path = 'my_path' url = 'https://ssd.jpl.nasa.gov' response = requests.get(url, verify=path)
I searched around a bit and it seems this is something recent and people found workarounds: astropy/astroquery#3210
I am not super confident with manually adding certificates, so I thought I would start this discussion.
All reactions
Replies: 1 comment
Hi @jessecob13, thanks a lot for giving this feedback! I guess the astroquery discussion you linked is covering the problem at it's source, so the workaround there is where I would start (can't reproduce it here at the moment). The problem might be go away by itself after some time if some part of the certificate chain is being updated.
If you don't want to touch your system, you could for now run the Python version of Solar-MACH on the JupyterHub of our SERPENTINE/SOLER EU project, where it is installed with an example Jupyter Notebook. You only need to log in with your GitHub account, more info are at https://soler-horizon.eu/hub/ (caveat: we right now run a Msc course that uses the JupyterHub in May, which might affect its performance a bit)
NB: I moved the discussion from https://github.com/jgieseler/Solar-MACH to https://github.com/jgieseler/solarmach, and added an issue to it at #76