Skip to main content

I have a script to retrieve time series of a combination of Sentinel-2 L1C bands and Sentinel-2 L2A assets like AOT, SCL, SZA, SAA, … for any given typically small (1x1 km) geometry, based on the examples here: https://documentation.dataspace.copernicus.eu/APIs/SentinelHub/Process/Examples/S2L1C.html

It has been working normally during the last year. I have my copernicus account, my client id credentials and I have consumed just 1% of the monthly PU available.

I have made tests today and I’m experiencing non expected Error 500, of two kinds:

  1. {"error":{"status":500,"reason":"Internal Server Error","message":"java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Total timeout 1000 ms elapsed","code":"RENDERER_EXCEPTION"}}
  1. "error":{"status":500,"reason":"Internal Server Error","message":"java.util.concurrent.ExecutionException: java.lang.RuntimeException: Illegal request! URL: creo://sh_idx_s2l1c_2024_03/Sentinel-2/MSI/L1C/2024/03/01/S2A_MSIL1C_20240301T101941_N0510_R065_T31SGR_20240301T122141.SAFE/GRANULE/L1C_T31SGR_A045393_20240301T102318/IMG_DATA/T31SGR_20240301T101941_B09.json.gz status: 503 reason: Slow Down","code":"RENDERER_EXCEPTION"}}

If I change the geometry, just for testing, it may work. But If I launch a second run, I can find one of the errors mentioned above. I have no means to predict when these errors come up. Could it be related to the fact that every time I run the script I create an oauth session?

```python

    # URL SentinelHub API
    url_sh = "https://sh.dataspace.copernicus.eu"
    url_sh_api = f"{url_sh}/api/v1"

    # Your client credentials
    client_id = 'xxxx'
    client_secret = 'yyyy'

    # Create a session
    client = BackendApplicationClient(client_id=client_id)
    oauth = OAuth2Session(client=client)

    # Get token for the session
    token = oauth.fetch_token(
      token_url='https://identity.dataspace.copernicus.eu/auth/realms/CDSE/protocol/openid-connect/token',
      client_secret=client_secret, include_client_id=True)

```

If so, how can I prevent these errors?

Many thanks in advance

 

I’m getting the same error for the past few days :-(

On some API request attempts, I get 2 or 3 files downloaded, then the error.  Sometimes 6 files, sometimes none.

Not sure what the prob is, but “Internal Server Error” points to something wrong at dataspace.copernicus.eu, I guess.


Hi both,

 

This question should be directed to the CDSE team over at their Community Forum where they should be able to help you far more effectively 


Hi both,

 

This question should be directed to the CDSE team over at their Community Forum where they should be able to help you far more effectively 

Done,

Here’s the link to the thread in the Copernicus Dataspace community forum.


Thanks, I have sent my contribution to the thread. Hope they can answer soon


Reply