Hi!
I am trying to download sentinel 2 data based on a list of ID’s, but I keep getting a DownloadFailedException. Below is my code (which is basically what is explained in the example notebook Accessing satellite data from AWS with Python
), where titles is a list of around 240 ID’s (ex. S2A_MSIL1C_20160610T210932_N0202_R057_T04QGJ_20160610T210934), and with a for loop I am trying to download S2 products for each of these ID’s.
I am not sure I understand the problem completely: Is it that the sentinel 2 product is not available anymore ?
Can someone help me understand how I can ‘skip’ the problematic ID’s in the for loop ?
CODE:
from sentinelhub import SHConfig
config = SHConfig()
config.aws_access_key_id = ‘’
config.aws_secret_access_key = ‘’
config.save()
data_folder = ‘./AwsData’
for l in titles:
print(l)
product_id = l
request = AwsProductRequest(product_id=product_id, data_folder=data_folder)
request.save_data() # This is where the download is triggered
ERROR:
DownloadFailedException: Failed to download from:
https://roda.sentinel-hub.com/sentinel-s2-l1c/products/2016/6/10/S2A_MSIL1C_20160610T210932_N0202_R057_T04QGJ_20160610T210934/productInfo.json
with HTTPError:
404 Client Error: Not Found for url: https://roda.sentinel-hub.com/sentinel-s2-l1c/products/2016/6/10/S2A_MSIL1C_20160610T210932_N0202_R057_T04QGJ_20160610T210934/productInfo.json
Server response: “”
Blockquote