Hello.
I’m using SentinelHub to get NDVI-statistics for geometries. I’m trying to get statistics for 150 geometries. I have a foreach loop to go through them with asynchronous request toSentinelHub. It goes all good, but at some point it returns 401 Unauthorized after 70-100 succesful geometries responses.
Is this a a common issue and how it can be fixed?
Data is fine, I’ve ran it from geometries 1-80 and 80-150 on their own loops and it gets response for all geometries. It’s just I need it to work reliably on getting succesful response with more than 150 geometries.
Thanks in advance. Here is the evalscript if you need it:
const evalscript = `
    //VERSION=3
    function setup() {
      return {
        input: [{
          bands: [
            "B04",
            "B08",
            "dataMask"
          ]
        }],
        output: [
          {
            id: "data",
            bands: 1
          },
          {
            id: "dataMask",
            bands: 1
          }]
      };
    }
    
    function evaluatePixel(samples) { 
        let index = (samples.B08 - samples.B04) / (samples.B08+samples.B04);
        return {
            data: [index, samples.B08, samples.B04],
            dataMask: [samples.dataMask]        
        };
    }
      `;
        