Hi @ah.nikfal can you confirm that when you create your profile specific to Copernicus Data Space Ecosystem you are inputting all of the below parameters?
config = SHConfig()
config.sh_client_id = getpass.getpass("Enter your SentinelHub client id")
config.sh_client_secret = getpass.getpass("Enter your SentinelHub client secret")
config.sh_token_url = "https://identity.dataspace.copernicus.eu/auth/realms/CDSE/protocol/openid-connect/token"
config.sh_base_url = "https://sh.dataspace.copernicus.eu"
config.save("cdse")
It’s important to set the token url
and base url
parameters as the default parameters for sentinelhub-py
won’t work with Copernicus Data Space Ecosystem.
For some up to date examples on using sentinelhub-py
with Copernicus Data Space Ecosystem I would recommend going through this notebook.