I’m using the SentinelHubInputTask from eolearn to create a workflow to retrieve Sentinel-2 scenes (not a full scene, but a small 256x256 aoi).
I’ve used my code a while, but now I’m getting the following error:
Any suggestions on how to resolve this?
My guess is that this error is is specific to the tiles and datetimes I’m requesting data for.
sentinelhub.exceptions.DownloadFailedException: Failed to download from:
https://services.sentinel-hub.com/api/v1/process
with HTTPError:
500 Server Error: Internal Server Error for url: https://services.sentinel-hub.com/api/v1/process
Server response: "{"error":{"status":500,"reason":"Internal Server Error","message":"Illegal request to s3://sentinel-s2-l2a-index/tiles/37/T/DK/2018/1/21/0/qi/CLD_20m.index. HTTP Status: '404'","code":"RENDERER_EXCEPTION"}}"
This is my code:
resolution = 10
time_difference = datetime.timedelta(hours=1)
bands = ['B01','B02','B03','B04','B05','B06','B07','B08','B8A','B09','B11','B12']
input_task = SentinelHubInputTask(
data_collection = DataCollection.SENTINEL2_L2A,
bands= bands,
bands_feature = (FeatureType.DATA, 'L2A_data'),
bands_dtype = np.uint16,
additional_data = [(FeatureType.MASK, 'SCL'), (FeatureType.MASK, 'CLD')],
resolution = resolution,
time_difference = time_difference,
config = config(),
max_threads = 4
)
output_task = OutputTask("eopatch")
workflow_nodes = linearly_connect_tasks(input_task, output_task)
workflow = EOWorkflow(workflow_nodes)
result = workflow.execute(
{
workflow_nodes[0]: {"bbox": roi_bbox, "time_interval": time_interval} }
)
eopatch = result.outputs["eopatch"]
