Out of retries error

Hi,

I tried to transform our NDVI anomaly script into NDWI anomaly script.
So I just, for now, change the formula of calculation of the index inside the script.
The problem is that it do not work and I do not understand why.

This one work :
https://services-uswest2.sentinel-hub.com/ogc/wms/ID?SERVICE=WMS&REQUEST=GetMap&SHOWLOGO=false&VERSION=1.3.0&CRS=EPSG:4326&WIDTH=512&HEIGHT=512&FORMAT=image/jpeg&LAYERS=TRUE_COLOR&MAXCC=100&temporal=true&BBOX=10.064792340753192,78.39962192759285,10.154724367013344,78.49097235534902&TIME=2013-01-01%2F2019-12-31&EVALSCRIPTURL=https%3A%2F%2Fraw.githubusercontent.com%2FDessoul%2Fibisa-eo%2Fmaster%2FmodisNdviAnomaly.js

This one do not :
https://services-uswest2.sentinel-hub.com/ogc/wms/ID?SERVICE=WMS&REQUEST=GetMap&SHOWLOGO=false&VERSION=1.3.0&CRS=EPSG:4326&WIDTH=512&HEIGHT=512&FORMAT=image/jpeg&LAYERS=TRUE_COLOR&MAXCC=100&temporal=true&BBOX=10.064792340753192,78.39962192759285,10.154724367013344,78.49097235534902&TIME=2013-01-01%2F2019-12-31&EVALSCRIPTURL=https%3A%2F%2Fraw.githubusercontent.com%2FDessoul%2Fibisa-eo%2Fmaster%2FmodisNdwiAnomaly.js

I cannot find the problem. The only difference is ndWi instead of ndVi
Can you help us ?

Thanks,

I tried to look into this but the script is so confusing that it is not really possible to analyse it properly.
I suggest you clean-up the script so that differences will become obvious.

It seems that at least one of the 186 scenes that you want to evaluate in this request returns an error. Why so, I cannot say.

One thing to mention though is that on-the-fly multi-temporal processing functionality was not really designed to work on almost 200 scenes that have to be processed in a few seconds. I do not think this is an error in this case, but it does for sure not help…

Hello,

I worked on rewriting the script to make it more readable, but I am still block and I do not understand the error I get. I have an error “Script failed to return.”

I put “throw new Error” everywhere but no one is triggered.

Can you please have a look ? I am a bit blocked here.

The script is https://raw.githubusercontent.com/Dessoul/ibisa-eo/master/ndviAnomaly2.js

Thank you !