SSL: CERTIFICATE_VERIFY_FAILED

I keep getting this error:

SSLError: HTTPSConnectionPool(host=‘cds.climate.copernicus.eu’, port=443): Max retries exceeded with url: /api/retrieve/v1/processes/reanalysis-era5-pressure-levels (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)’)))

I keep seeing that the url changed by getting rid of the beta part, but i nver had that. I just tried to do it today for the first time. I have no problem loading in the cdsapi module or anything. Anyone have any solutions?

Hi,

The CDS API url is documented here: CDSAPI setup - Climate Data Store and you can find more information on error messages can be found in our knowledge base article: Common Error Messages for CDS Requests - Copernicus Knowledge Base - ECMWF Confluence Wiki

You might be seeing an SSLError due to your system or network not trusting the SSL certificate chain used by the CDS API server.

This sometimes happens when:

  • You’re behind a proxy that intercepts SSL traffic.
  • Your Python environment is using outdated or missing CA certificates.

If you’re using Python, can you try to update your certifi package (for CA certificates):

pip install --upgrade certifi

===============================================================

Let us know if you’re still seeing issues!
Kind regards,
Emma