Error 403 in process API only for a certain date

I am making a request to the collections API for a polygon in the sentinel 2-l1c service with the request:
curl -X POST https://services.sentinel-hub.com/api/v1/catalog/search -H 'Content-Type: application/json' -H 'Authorization: Bearer XXX' -d '{ "collections": [ "sentinel-2-l1c" ], "datetime": "2020-05-01T00:00:00Z/2020-05-10T23:59:59Z", "intersects": { "type": "Polygon", "coordinates": [ [ [ -103.6263219381808, 19.08929676521881 ], [ -103.62715894099519, 19.089073778406632 ], [ -103.62720196802225, 19.087491780761596 ], [ -103.62378997332931, 19.08742072805376 ], [ -103.62402594302333, 19.089174729826922 ], [ -103.6263219381808, 19.08929676521881 ] ] ] }, "limit": 10}'

and I get that there are images available for May 2 and May 7

but when I try to download the image corresponding to May 2 with: curl -X POST https://services.sentinel-hub.com/api/v1/process -H 'Content-Type: application/json' -H 'Authorization: Bearer XX' -d '{ "input": { "bounds": { "geometry": { "type": "Polygon", "coordinates": [ [ [ -11535629.39093812, 2165451.988392669 ], [ -11535722.565665212, 2165425.721198579 ], [ -11535727.355411954, 2165239.3675201917 ], [ -11535347.533900145, 2165230.9978064895 ], [ -11535373.801926326, 2165437.612976156 ], [ -11535629.39093812, 2165451.988392669 ] ] ] }, "properties": { "crs": "http://www.opengis.net/def/crs/EPSG/0/3857" } }, "data": [ { "type": "S2L1C", "dataFilter": { "timeRange": { "from": "2020-05-02T00:00:00Z", "to": "2020-05-03T23:59:59Z" } } } ] }, "output": { "width": 38, "height": 22, "responses": [ { "identifier": "default", "format": { "type": "image/jpeg" } } ] }, "evalscript": "//VERSION=3\n\nfunction setup() {\n return {\n input: [\"B02\", \"B03\", \"B04\"],\n output: { bands: 3 }\n };\n}\n\nfunction evaluatePixel(sample) {\n return [2.5 * sample.B04, 2.5 * sample.B03, 2.5 * sample.B02];\n}"}

I get an error 500, with this body mentioning an error 403

But this same request works fine for the timeRange
"timeRange": { "from": "2020-05-07T00:00:00Z", "to": "2020-05-07T23:59:59Z" }

Similar issues as here.

Can you try again?

1 Like