Before trying anything else check make sure you're using the most up to date versions
using Python 3
using the most up to date version of the CDS API
These 2 things cause 90% of issues experienced so we recommend to double check both these factors first
If you are still experiencing issues it's time to look at the error messages.
What type of error are you seeing?
Timed out
If the error message mentions 'timed out' like the example below:
WARNING Recovering from connection error [HTTPSConnectionPool(host= 'cds.climate.copernicus.eu' , port= 443 ): Max retries exceeded with url: /api/v2/tasks/7b4e735b-5a79- 4913 -bbcb-cebc0c65b420 (Caused by ConnectTimeoutError (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81056e8940 >, 'Connection to cds.climate.copernicus.eu timed out. (connect timeout=60)' ))], attempts 12 of 500 |
Diagnosis : This is due to network issues causing delays in the communication between the your system and the CDS.
Solution : The best way round this is to add the "timeout=600" (or longer) option for the timeout duration in seconds, to your CDS API request :
c = cdsapi.Client(timeout = 600 ,quiet = False ,debug = True ) |
Proxy
If the message mentions ‘cannot connect to proxy’ like the example below:Â
WARNING Recovering from connection error [HTTPSConnectionPool(host= 'cds.climate.copernicus.eu' , port= 443 ): Max retries exceeded with url: /api/v2/resources/cems-fire-historical (Caused by ProxyError( 'Cannot connect to proxy.' , timeout( '_ssl.c:835: The handshake operation timed out' ,)))], attempts 0 of 500 |
Diagnosis: This could also be due to the network issues causing delays in the communication between the your system and the CDS. Therefore we recommend to try this solution first Â
Solution: Add the "timeout=600" (or longer) option for the timeout duration in seconds, to your CDS API request :
c = Â cdsapi.Client(timeout = 600 ,quiet = False ,debug = True ) |
If the issue continues you will need to check that the ports required by the CDS are open on your firewall (i.e. https, 443)