ERA5 api download fail for july 2024

Hello,

I tried to download an ERA5 dataset with the CDS API tool, however, fails to download.

Exception: an internal error occurred processing your request. mars - ERROR - 20240827.083335 - Receive end of request from server without data. Retrying 1
mars - ERROR - 20240827.083335 - Multibase error -7777
mars - ERROR - 20240827.083536 - MARS considers 0 fields retrieved are not enough
mars - ERROR - 20240827.083536 - Request failed

Request:
#!/usr/bin/env python
import cdsapi

c = cdsapi.Client()

c.retrieve(“reanalysis-era5-complete”, {
“class”: “ea”,
“date”: “2024-07-17/2024-07-18/2024-07-19”,
“expver”: “1”,
“levelist”: “all”,
“levtype”: “ml”,
“param”: “129/130/131/132/133/135/246/248/152”,
“stream”: “oper”,
“time”: “12:00:00/15:00:00/18:00:00”,
“type”: “an”,
‘grid’ : ‘0.25/0.25’, # Latitude/longitude. Default: spherical harmonics or reduced Gaussian grid
“format”: “netcdf”,
‘area’ : ‘25.15/54.8/24.8/55.15’, # North, West, South, East. Default: global
}, “ERA5_Dubai_model_level_v2608.nc”)

for example, exactly the same request did work for
“date”: “2021-07-17/2021-07-18/2021-07-19”,

but last week I managed to download data for july 2024 with similar location and variables. does anyone have an idea why it doesnt work?

best, annelot

I am having a similar issue with my project. This code works fine for years 2018 - 2023, yet only loads the t2m variable for 2024 without producing an error

def retrieve_data(params, filename):
    """
    Get data from the cdsapi.
    """
    c = cdsapi.Client()
    try:
        c.retrieve('reanalysis-era5-single-levels', params, filename)
        print(f"Successfully downloaded {filename}")
    except Exception as e:
        print(f"Error retrieving data: {e}")

def process_climate_data(year):
    """
    Get the variables from the reanalysis-era5-single-levels product for the given year. Currently hard coded for 2m temp, total prec and solar rad.
    Creates intermediate output after download from api but will be deleted in favor of the processed dataset with gdd, acc prec and acc rad
    """
    params = {
        'product_type': 'reanalysis',
        'variable': [
            '2m_temperature',
            'total_precipitation',
            'surface_solar_radiation_downwards'
        ],
        'year': year,
        'month': [f'{m:02}' for m in range(1, 13)],
        'day': [f'{d:02}' for d in range(1, 32)],
        'time': [f'{h:02}:00' for h in range(24)],
        'data_format': 'netcdf',
        'area': [55.0, 6.0, 47.0, 15.0]
    }
    filename = f"era5_climate_raw_{year}.nc"
    retrieve_data(params, filename)

Best,
Patrick