Queryables endpoint returns 400
The queryables endpoint has the purpose to inform the user about what filters can be used in a specific dataset and which values are available.
To help user starting her search with some valid parameter, the queryables endpoint assumes some default parameters. These default parameters can become at some point invalid, e.g. for collection with rolling buffers, if this happen the queryables endpoint returns a 400 error.
The Digital Twin Extremes dataset, for example, has a dynamic range of datetime, this will make the ‘Digital Twin Extremes’ queryables endpoint return a 400 error. To have a proper response form the queryables API you need to pass proper values to the queryables endpoint.
https://hda.data.destination-earth.eu/stac/collections/EO.ECMWF.DAT.DT_EXTREMES/queryables
Activating that address fails with a 400 HTTP error code and an error message like this:
{
"description": "ecmwf:date=20150101/to/20150102 is not available with ecmwf:class=d1, ecmwf:dataset=extremes-dt, ecmwf:expver=0001, ecmwf:type=fc. Allowed values are 20240426, 20240529, 20240516, 20240603, 20240522, 20240428, 20240414, 20240521, 20240519, 20240517, 20240511, 20240508, 20240601, 20240417, 20240429, 20240514, 20240520, 20240606, 20240506, 20240501, 20240409, 20240607, 20240405, 20240502, 20240523, 20240411, 20240507, 20240509, 20240524, 20240424, 20240408, 20240510, 20240518, 20240413, 20240503, 20240410, 20240420, 20240422, 20240415, 20240418, 20240419, 20240427, 20240528, 20240404, 20240407, 20240406, 20240421, 20240515, 20240527, 20240512, 20240425, 20240530, 20240416, 20240604, 20240423, 20240513, 20240531, 20240430, 20240605, 20240505, 20240525, 20240526, 20240504, 20240412, 20240602."
}
To get a valid response we need to pass valid dates:
https://hda.data.destination-earth.eu/stac/collections/EO.ECMWF.DAT.DT_EXTREMES/queryables?ecmwf:date=20240419