bchoi
bchoi

Reputation: 41

SSL Certificate Error when using python pvlib library

I am trying to use the python pvlib library to get weather forecast data and it worked at the beginning, but now I keep getting this SSL Certificate Error. Could you help me with resolving this issue?

Code below:

from pvlib.forecast import GFS, HRRR_ESRL, NAM, NDFD, HRRR, RAP

fm = GFS()
data = fm.get_data(latitude, longitude, start, end)

Error message:

SSLError: HTTPSConnectionPool(host='thredds.ucar.edu', port=443): Max retries exceeded with url: /thredds/catalog.xml (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')))

Upvotes: 2

Views: 332

Answers (1)

bchoi
bchoi

Reputation: 41

I was using my company laptop, and it looks like the error was associated with the VPN connection issue. The code runs fine when I'm at the office using the office wifi, but it does not work at home.

Upvotes: 1

Related Questions