Service Temporarily Unavailable

Hello,

I am recently getting this error frequently:

  File "/usr/local/lib/python3.12/site-packages/sentinelhub/base.py", line 274, in __next__
    new_features = self._fetch_features()
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sentinelhub/api/catalog.py", line 241, in _fetch_features
    results = self.client.get_json_dict(self.url, post_values=payload, use_session=True)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sentinelhub/download/client.py", line 249, in get_json_dict
    response = self.get_json(url, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sentinelhub/download/client.py", line 239, in get_json
    return self._single_download_decoded(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sentinelhub/download/client.py", line 117, in _single_download_decoded
    response = self._single_download(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sentinelhub/download/client.py", line 130, in _single_download
    response = self._execute_download(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sentinelhub/download/handlers.py", line 79, in new_download_func
    raise DownloadFailedException(message, request_exception=exception) from exception
sentinelhub.exceptions.DownloadFailedException: Failed to download from:
https://services-uswest2.sentinel-hub.com/api/v1/catalog/1.0.0/search
with HTTPError:
503 Server Error: Service Temporarily Unavailable for url: https://services-uswest2.sentinel-hub.com/api/v1/catalog/1.0.0/search
Server response: "503 Service Temporarily Unavailable"

This is the code that I use

us_west_config = SHConfig()
if CLIENT_ID and CLIENT_SECRET:
    us_west_config.sh_client_id = CLIENT_ID
    us_west_config.sh_client_secret = CLIENT_SECRET
us_west_config.sh_base_url = "https://services-uswest2.sentinel-hub.com"

catalog=SentinelHubCatalog(config=us_west_config)
products=catalog.search(
    collection=DataCollection.LANDSAT_OT_L1,
    geometry=sentinelhub.Geometry(rectangle, crs='EPSG:4326'),
    time=(start_date,end_date),  
)

products = list(products)

Am I doing something wrong?

Hi,

I’ve just tested the API searching the LANDSAT_OT_L1 data collection and this works absolutely fine for me. Can you be more specific on how often you are receiving this error?

Thanks for your reply,

It happened today multiple times between 00:00 AM and 00:05 AM. And it happened before at similar time. I will try running tomorrow to see if the issue still repeats.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.