Skip to main content

Hello!


I am attempting to run a request in the request builder. When I scale my res X and Y to 10m, the request quits out. Here is the request body I am sending,


{
"input": {
"bounds": {
"bbox": [
-106.879119,
40.012891,
-106.63605,
40.161559
]
},
"data": [
{
"dataFilter": {
"timeRange": {
"from": "2022-04-20T00:00:00Z",
"to": "2022-05-20T23:59:59Z"
}
},
"type": "sentinel-2-l1c"
}
]
},
"output": {
"width": 2072.395346257918,
"height": 1654.9646057254092,
"responses": [
{
"identifier": "default",
"format": {
"type": "image/tiff"
}
}
]
},
"evalscript": "//VERSION=3\n\nfunction setup() { \n return { \n input: [{ bands: [\"B01\", \"B02\", \"B03\", \"B04\", \"B05\", \"B06\", \"B07\", \"B08\", \"B8A\", \"B09\", \"B11\", \"B12\", \"CLM\", \"B10\"], \n units:\"DN\" \n }], \n \n output: { \n id: \"default\", \n bands: 12, \n sampleType: SampleType.UINT16 }\n };\n} \n\nfunction evaluatePixel(sample) {\n return [ sample.B01, sample.B02, sample.B03, sample.B04, sample.B05, sample.B06, sample.B07, sample.B08, sample.B8A, sample.B09, sample.B1972, sample.B12, sample.CLM, sample.B10]\n }"
}

Above fails, but when switched to a 30m resolution (“width”: 690.7984487526393,“height”: 551.6548685751364) the request returns successfully. In the UI of the request builder, nothing happens as the loading animation disappears. In the web developer console, I can see that the request is blocked with a CORS error as shown by the image below,



I don’t believe this is related to my rate limits as I am well under my allocated processing units. Also, when running this request in Postman I get the same behavior. I don’t see any specific size limitations in the documentation other than those related to processing units. What may be happening here?

Hi,

I just had a look at this and was not able to reproduce the error. Both in the request builder and postman I could successfully download the data using the request body you shared above. The request uses a bit more than 61PUs so as you already mentioned this should also not be the problem.

Can you please try to open a new private window, open the request builder there, log in with your account and execute the request? If this does the trick the problem was somewhere with the authentication of the account (in those cases often a simple refresh and relogin already helps).

Best,
 


Hi,

Unfortunately that does not solve my problem. However, I believe there was an issue in my evalscript where I am setting each layer to a sampleType of UINT16. Changing this to “AUTO” has resolved my issue.

I was thrown off by the CORS error, hopefully the API can be updated to provided feedback on invalid evalscripts.

Thank you


Reply