Corrupt response.tar file

I am pulling Sentinel 2 Imagery L2A all 12 Bands and the associated Cloud Mask and Scene Classification mask as another tiff. These three tiffs get pulled and saved in the typical response.tar file which I then unzip. However if I try to unzip one of the areas I pulled I receive the error:

tar tvf test.tar
-rw-r--r-- 0/0        88669613 2022-05-19 23:15 s2l2a.tif
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

The area I was pulling was Bounding sub box #47: -108.7604,40.52,-108.4808,40.68 from times 07-01-2017 - 07-30-2017. Looks like its either the cloud mask or scene classification mask that is corrupt. Can you check on this server side to see if it is corrupt on your side as well? Thanks.

Hi Greg

With simple check, I get correct responses for the bands mentioned,

Would you please maybe paste here the evalscript you are using and the request, so that I can investigate further.

best regards

here is my evalscript:

evalscript_all_l2a_plus_masks_10m_bands = “”"
//VERSION=3
function setup() {
return {
input: [{
bands: [“B01”,“B02”,“B03”,“B04”,“B05”,“B06”,“B07”,“B08”,“B8A”,“B09”,“B11”,“B12”,“CLM”,“SCL”],
units: [“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“reflectance”,
“DN”,
“DN”]
}],
output: [
// S2 L2A MSI Bands
{
id : “s2l2a”,
bands: 12,
sampleType: “FLOAT32”
},
// S2 Cloud Mask
{
id : “clm”,
bands: 1,
sampleType: “UINT8”
},
// S2 Scene Classification Layer
{
id : ‘scl’,
bands: 1,
sampleType: “UINT8”
}
]
};
}

function evaluatePixel(sample) {
    return {
        s2l2a: [sample.B01,
            sample.B02,
            sample.B03,
            sample.B04,
            sample.B05,
            sample.B06,
            sample.B07,
            sample.B08,
            sample.B8A,
            sample.B09,
            sample.B11,
            sample.B12],

        clm: [sample.CLM],

        scl: [sample.SCL],
    }
}

Works on other areas but not certain areas seem to return a corrupt tar file.

If I remove pulling the Scene Classification, there is no issue. Can you check the scene classification masks?

Thanks for providing this additional details.

Yes it is possible that some tiles could be corrupt, which are then reprocessed; however I was not able to replicate the error in the mentioned BBOX and date range.

If you received an error while executing the request; please paste it here, from the error message we can identify the corrupt tile.

Best regards