# Sunpy: Fido Client Connector Certificate Error

**URL:** <https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341>\
**Category:** SunPy\
**Tags:** question\
**Created:** [April 21, 2022, 8:02am UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341 "2022-04-21T08:02:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ansel](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Ansel](https://community.openastronomy.org/u/Ansel)\
**Post date:** [April 21, 2022, 8:02am UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341/1 "2022-04-21T08:02:00Z")

</div>

Hello,

I have been working with the SDO’s AIA and HMI images and want to download the associated FITS files with Fido.

While downloading the HMI images was no problem, I have been getting a ClientConnectorCertificateError when attempting to do the same with AIA images.

If anybody knows a solution to this issue, I would be very thankful.

Best,  
Ansel

Code:  
result = Fido.search(a.Time(‘2021-01-01 09:00:00’, ‘2021-01-01 16:00:00’), a.Instrument.aia, a.Wavelength(1700\*u.AA), a.Sample(1 \*u.hour))

downloaded\_files = Fido.fetch(result, path=’~/desktop/test/{file}’)

Error message of one image:  
url=‘[https://sdo7.nascom.nasa.gov/cgi-bin/drms\_export.cgi?series=aia\_\_lev1;compress=rice;record=1700\_1388588466-1388588466](https://sdo7.nascom.nasa.gov/cgi-bin/drms_export.cgi?series=aia__lev1;compress=rice;record=1700_1388588466-1388588466)’,

exception=ClientConnectorCertificateError(ConnectionKey(host=‘[sdo7.nascom.nasa.gov](http://sdo7.nascom.nasa.gov)’, port=443, is\_ssl=True, ssl=None, proxy=None, proxy\_auth=None, proxy\_headers\_hash=8913719493882984843),

SSLCertVerificationError(1, ‘[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:997)’)))]

---

<div class="post-metadata">

**Author:** ![Cadair](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/cadair/32/422_2.png) [@Cadair](https://community.openastronomy.org/u/Cadair)\
**Post date:** [April 21, 2022, 9:16am UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341/2 "2022-04-21T09:16:20Z")

</div>

Hi Ansel,

Thanks for the post, it looks like a server issue on the VSO side, so I have forwarded this to the VSO team, hopefully it will be resolved soon.

Stuart

---

<div class="post-metadata">

**Author:** ![Ansel](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Ansel](https://community.openastronomy.org/u/Ansel)\
**Post date:** [April 21, 2022, 10:12am UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341/3 "2022-04-21T10:12:36Z")

</div>

Hi Stuart,

Thank you for the quick response!  
I will contact the VSO team in case it is not.

Ansel

---

<div class="post-metadata">

**Author:** ![ejm4567](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/ejm4567/32/211_2.png) [@ejm4567](https://community.openastronomy.org/u/ejm4567)\
**Post date:** [April 27, 2022, 12:03pm UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341/4 "2022-04-27T12:03:41Z")

</div>

Hi Ansel,

What date and time did you see the certificate error when searching for AIA data?  
Did you eventually get the AIA data downloaded that you were looking for?

What version of Python & SunPy are you using?

The certificate verify error you saw has been fixed in all the gateway machines that I know of that SunPy queries are processed through. I will look through the log files for your query to determine which gateway your query was processed through to see if a gateway was missed.

Thanks,

–Ed

---

<div class="post-metadata">

**Author:** ![Ansel](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Ansel](https://community.openastronomy.org/u/Ansel)\
**Post date:** [May 1, 2022, 6:20pm UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341/5 "2022-05-01T18:20:45Z")

</div>

Hi Ed,

thanks for the response.

I am using Python 3.10.2 and Sunpy 3.1.6.

I went through a small series of test for January 1. of all years since 2015 as well as some random dates in between. My search queries always looked like this:

result = Fido.search(a.Time(date + ’ 14:00:00’, date + ’ 16:00:00’),  
a.Instrument.aia,  
a.Sample(1\*u.hour))

downloaded\_images = Fido.fetch(result,  
path=‘path/to/files/{file}’)

Downloading AIA images still hasn’t worked.

I hope this helps out.

Best,  
Ansel

---

<div class="post-metadata">

**Author:** ![nabobalis](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nabobalis/32/14_2.png) [@nabobalis](https://community.openastronomy.org/u/nabobalis)\
**Post date:** [May 1, 2022, 7:21pm UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341/6 "2022-05-01T19:21:42Z")

</div>

I can’t offer much help but doing the search and fetch from the first post, I can download the files with no error.

I am using sunpy 3.1.6.

---

<div class="post-metadata">

**Author:** ![Ansel](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Ansel](https://community.openastronomy.org/u/Ansel)\
**Post date:** [May 1, 2022, 8:06pm UTC](https://community.openastronomy.org/t/sunpy-fido-client-connector-certificate-error/341/7 "2022-05-01T20:06:31Z")

</div>

> [@Ansel](#):
>
> downloaded\_files = Fido.fetch(result, path=’~/desktop/test/{file}’)

Interesting. I still can’t download them. I’ll try reinstalling SunPy.
