0 votes
180 views

I am using the JupyterLab on this website to try and grab images. I used this script ~2 years ago and it worked. Most of the script still works, the only issue is when I try to actually download the images I get 

SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)

 It seems like the exact command of issue is 

self._sslobj.do_handshake()

in /data0/sw/anaconda3/lib/python3.8/ssl.py

Any advice would be appreciated.

by derrcarr (220 points)
edited by 584 | 180 views

1 Answer

0 votes
Assuming the error is coming from the cutout service access for the image, please try again.  The SSL certs are starting to expire at year's end and I've just updated the cert on the cutout machine.  If you still have problems could you please post the URL causing the problem.
by datalab (21.6k points)
Seems as though I am still having issues. I actually do not get to the URL part, but rather before when I run this command:

imgTable = svc.search((ra,dec), (fov/np.cos(dec*np.pi/180), fov), verbosity=2).to_table()

Ultimately, I am using the cutout service. Just to share these lines that I have at the top of the notebook relating to svc...

DEF_ACCESS_URL = "https://datalab.noao.edu/sia/ls_dr7" # DES SIA service URL
svc = sia.SIAService(DEF_ACCESS_URL)
Try changing your DEF_ACCESS_URL to use noirlab.edu instead of noao.edu.  Likewise, be sure all URLs are using 'https' and not just 'http' (although there should be automatic forwarding).
That fixed it, appreciate the help

451 questions

463 answers

474 comments

659 users

Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.

Categories