Closed filippogrz closed 1 year ago
Hello @filippogrz and thanks for submitting this issue.
creodias
has moved to a new commercial service. Before the provider is updated with this new authentication service, I can suggest you to use the cop_dataspace
provider with eodag (see provider registration). It will be the closest provider to the previous creodias
and you should have similar results
I am facing a similar issue as well when downloading Sen 3 SLSTR products from creodias. Are there any alternate sources that give access to historical data and compatible with EODAG?
Hello @varisht-tathya , for Sentinel 3 SLSTR, you can try cop_dataspace
, mundi
or onda
(also sara
for australian data).
See:
>>> from eodag import EODataAccessGateway
>>> dag = EODataAccessGateway()
>>> dag.available_providers("S3_SLSTR_L1RBT")
['cop_dataspace', 'creodias', 'mundi', 'onda', 'sara']
Describe the bug When searching for Sentinel-1 GRD products with CreoDIAS as a provider, the
download
command returns an error.It seems than CreoDIAS has recently updated their website (see new website "CreoDIAS 2.0" that now requires MFA to sign in) and their authentification method through the API.
Code To Reproduce With CreoDIAS as main provider configured,
search
will pass successfully butdownload
will fail:Output The
download
command will return an authentification error:See the full error below returned by the `download` command
```sh 2023-06-28 14:37:35,395 eodag.config [INFO ] (config ) Loading user configuration from: /home/username/.config/eodag/eodag.yml 2023-06-28 14:37:35,468 eodag.core [INFO ] (core ) usgs: provider needing auth for search has been pruned because no crendentials could be found 2023-06-28 14:37:35,468 eodag.core [INFO ] (core ) aws_eos: provider needing auth for search has been pruned because no crendentials could be found 2023-06-28 14:37:35,468 eodag.core [INFO ] (core ) meteoblue: provider needing auth for search has been pruned because no crendentials could be found 2023-06-28 14:37:35,468 eodag.core [INFO ] (core ) hydroweb_next: provider needing auth for search has been pruned because no crendentials could be found 2023-06-28 14:37:35,540 eodag.core [DEBUG ] (core ) Opening product types index in /home/username/.config/eodag/.index 2023-06-28 14:37:35,546 eodag.core [INFO ] (core ) Locations configuration loaded from /home/username/.config/eodag/locations.yml 2023-06-28 14:37:35,549 eodag.core [INFO ] (core ) Downloading 20 products Downloaded products: 0%| | 0/20 [00:00, ?product/s]2023-06-28 14:37:35,686 eodag.plugins.download.base [ERROR ] (base ) Stopped because of credentials problems with provider creodias Traceback (most recent call last): File "/home/username/.local/lib/python3.8/site-packages/eodag/plugins/authentication/keycloak.py", line 59, in authenticate response.raise_for_status() File "/home/username/.local/lib/python3.8/site-packages/requests/models.py", line 1022, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://identity.cloudferro.com/auth/realms/dias/protocol/openid-connect/token During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/username/.local/lib/python3.8/site-packages/eodag/plugins/download/base.py", line 453, in download_all product.download( File "/home/username/.local/lib/python3.8/site-packages/eodag/api/product/_product.py", line 304, in download self.downloader_auth.authenticate() File "/home/username/.local/lib/python3.8/site-packages/eodag/plugins/authentication/keycloak.py", line 77, in authenticate raise AuthenticationError( eodag.utils.exceptions.AuthenticationError: Something went wrong while trying to get access token: Traceback (most recent call last): File "/home/username/.local/lib/python3.8/site-packages/eodag/plugins/authentication/keycloak.py", line 59, in authenticate response.raise_for_status() File "/home/username/.local/lib/python3.8/site-packages/requests/models.py", line 1022, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://identity.cloudferro.com/auth/realms/dias/protocol/openid-connect/token Downloaded products: 0%| | 0/20 [00:00, ?product/s] Traceback (most recent call last): File "/home/username/.local/lib/python3.8/site-packages/eodag/plugins/authentication/keycloak.py", line 59, in authenticate response.raise_for_status() File "/home/username/.local/lib/python3.8/site-packages/requests/models.py", line 1022, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://identity.cloudferro.com/auth/realms/dias/protocol/openid-connect/token During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/username/.local/bin/eodag", line 8, in
Environment:
3.8.10
2.10.0