My request is failing due to unsupported provider

The HDA download requests can fail if the provider parameter is set with an invalid host provider.

For example, the following request:

https://hda.data.destination-earth.eu/stac/collections/EO.ESA.DAT.SENTINEL-2.MSI.L2A/items/S2A_MSIL2A_20150704T101006_N0204_R022_T32SMG_20150704T101337/download?provider=copernicus_atmoshpere_data_store

fails with an error message like this:

{
    "description": "UnsupportedProvider: copernicus_atmosphere_data_store is not (yet) supported"
}

It is failing because the provider used to perform the request is not a valid host provider for the chosen collection.

The valid host providers can be found in the collection metadata. To select a valid one, you need to choose among the providers having ‘host’ as a listed role.

In the example below, dedl is a valid host provider:

"properties": {
    "providers": [
        {
            "name": "dedl",
            "description": "DEDL Fresh Data Pool",
            "roles": [
                "host"
            ],
            "url": "https://hda.data.destination-earth.eu/",
            "priority": 1
        }
    ],