sentinelhub-py icon indicating copy to clipboard operation
sentinelhub-py copied to clipboard

[BUG] Sentinel-3 data download fails with `creodias.sentinel-hub.com` endpoint

Open wehrad opened this issue 1 year ago • 3 comments

Hi,

I get a hanging download when using the SENTINEL3_OLCI collection. That made me think of the recent deprecation warning and I realized that this collection is indeed pointing to creodias.sentinel-hub.com.

So within earthspy and as suggested in the post above, I changed the endpoint from creodias.sentinel-hub.com to sh.dataspace.copernicus.eu but now I get:

DownloadFailedException: Failed to download from:
https://sh.dataspace.copernicus.eu/api/v1/catalog/1.0.0/search
with HTTPError:
401 Client Error: Unauthorized for url: https://sh.dataspace.copernicus.eu/api/v1/catalog/1.0.0/search
Server response: "{"code": 401, "description": "You are not authorized! Please provide a valid access token within the header [Authorization: Bearer <accessToken>] of your request."}"

Which feels like I'd need an extra token now, on top of the Sentinelhub one?

If it's indeed due to the deprecation, I feel like this should be handled by sentinelhub-py rather than packages relying on it like earthspy? If this is actually not the problem, I'm still wondering if the deprecation will affect sentinelhub-py and if there's a plan to handle it?

I'm running sentinelhub 3.10.0 (which is quite old, but I can't really see recent updates that could help with my issue though) on Ubuntu 24.04.01.

Thank you a lot in advance! :)

wehrad avatar Feb 12 '25 08:02 wehrad

Hi @AdrienWehrle

did you try configuring the authentication for the Copernicus Data Space Ecosystem

There are also some other slight changes in use, you can follow these examples

zigaLuksic avatar Feb 12 '25 08:02 zigaLuksic

Thank you for this! Their OAuth client generator is down for now it seems, but hopefully I'll be able to get one soon.

Does this mean users willing to download SENTINEL3_OLCI now need both SentinelHub credentials and a dataspace token?

wehrad avatar Feb 12 '25 09:02 wehrad

After Creodias is deprecated, Sentinel Hub will no longer provide access to Sentinel 3 data (see here)

zigaLuksic avatar Feb 12 '25 09:02 zigaLuksic