-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python API MisconfiguredError
: Missing credentials configuration for provider cop_cds
#1489
Comments
Hello @geograFie , to configure authentication on cop_cds:
priority: # optional if you want to change provider priority
download: # optional if you want to change provider download configuration
auth:
credentials:
apikey: your-personal-access-token Also, once credentials are set, you might have another issue with guessed = dag.guess_product_type(keywords="era5 AND single AND monthly")
# you'll get ['ERA5_SL_MONTHLY']
# or check product types pre-configured for `cop_cds`
product_types = dag.list_product_types("cop_cds")
products = dag.search(
provider="cop_cds",
productType="ERA5_SL_MONTHLY",
start="2022-01-01", end="2022-12-31"
) |
Thanks for the reply. Unfortunately, I still got an
After some searching, I found out that the CDS API url is misconfigured in Do you have any clue why it is not updating the |
The URL was updated in #1397 that is only available trough v3.1.0b1 for the moment. (beta versions are on pypi but not conda-forge). If you can't install cop_cds:
download:
order_on_response:
metadata_mapping:
orderStatusLink: https://cds.climate.copernicus.eu/api/retrieve/v1/jobs/{orderId}
searchLink: https://cds.climate.copernicus.eu/api/retrieve/v1/jobs/{orderId}/results
search:
constraints_file_url: https://cds.climate.copernicus.eu/api/catalogue/v1/collections/{dataset}/constraints.json
metadata_mapping:
orderLink: 'https://cds.climate.copernicus.eu/api/retrieve/v1/processes/{dataset}/execution?{{"inputs": {qs#to_geojson}}}'
auth:
matching_url: https://cds.climate.copernicus.eu
credentials:
apikey: your-personal-access-token |
It looks like an interesting tool to find and access EO data and I am working with Big EO data, so I would love to switch my current setup to EODAG. However, I have not been able to get it running to download data and I am struggling to configure the authentication for the different providers. Specifically, I want to download ERA5 data from the climate data store. Doing so via the CDS api works, so it does not seem to be an issue of my credentials, but perhaps how it is configured via the
eodag.yml
.I used the
eodag.yml
template, but I keep running into theMisconfiguredError: Missing credentials configuration for provider cop_cds
error. From the docs it is unclear to me how theeodag.yml
config file must look like, as some entries useauth
andapi
, orapikey
, and othersusername
andpassword
credentials. This is very confusing.I have tried different combinations, without success. EODAG either returns the above mentioned error or the following error:
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)
.Searching works well and returns a valid entry, but downloading fails.
In all cases, the errors are returned in the last line of:
The text was updated successfully, but these errors were encountered: