I have been getting the following error this morning:
HTTPError: 503 Server Error: Service Unavailable for url: same_url
Server response: “503 Service Unavailable No server is available to handle this request.”
I am using the eval_script_all_bands from the following documentation:
“Sentinel Hub Process API — Sentinel Hub 3.10.1 documentation”
I have used this script with success as recently as 02/19/24 and I have also updated the script to attempt multiple retries, but to no avail. My Oauth is active, so I don’t think this is a credential issue. Is anyone aware of issues with the processing API at the moment?
Any help or information would be greatly appreciated.
Update:
This has been a continuing issue this morning and I have not had any successful queries and this is the first time I have had this issue (been using the script once in a while for around 8 months).
Here is my config:
config = SHConfig(
instance_id=‘’,
sh_client_id=‘removed’,
sh_client_secret=‘removed’,
sh_base_url=‘same_url’,
sh_token_url=‘[same_url]same_url)’
)
Here is the function calling the eval script:
def get_all_bands(bbox,dir):
current_bbox = BBox(bbox=bbox, crs=CRS.WGS84)
current_size = bbox_to_dimensions(current_bbox, resolution=10)
evalscript_all_bands = “”"
//VERSION=3
function setup() {
return {
input: [{
bands: [“B01”,“B02”,“B03”,“B04”,“B05”,“B06”,“B07”,“B08”,“B8A”,“B09”,“B10”,“B11”,“B12”],
units: “DN”
}],
output: {
bands: 13,
sampleType: “INT16”
}
};
}
function evaluatePixel(sample) {
return [sample.B01,
sample.B02,
sample.B03,
sample.B04,
sample.B05,
sample.B06,
sample.B07,
sample.B08,
sample.B8A,
sample.B09,
sample.B10,
sample.B11,
sample.B12];
}
"""
request_all_bands = SentinelHubRequest(
evalscript=evalscript_all_bands,
input_data=[
SentinelHubRequest.input_data(
data_collection=DataCollection.SENTINEL2_L1C,
time_interval=(“2023-06-01”, “2023-08-30”),
mosaicking_order=MosaickingOrder.LEAST_CC,
)
],
responses=[SentinelHubRequest.output_response(“default”, MimeType.TIFF)],
bbox=current_bbox,
size=current_size,
config=config,
)
sat_data_tiff = request_all_bands.get_data()
In its entirety, this is the error that I receive:
HTTPError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/sentinelhub/download/handlers.py in new_download_func(self, request)
66 try:
—> 67 return download_func(self, request)
68
35 frames
HTTPError: 503 Server Error: Service Unavailable for url: same_url
The above exception was the direct cause of the following exception:
HTTPError Traceback (most recent call last)
HTTPError: 503 Server Error: Service Unavailable for url: same_url
The above exception was the direct cause of the following exception:
DownloadFailedException Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/sentinelhub/download/handlers.py in new_download_func(self, request)
80 if attempts_left <= 0:
81 message = _create_download_failed_message(exception, request.url)
—> 82 raise DownloadFailedException(message, request_exception=exception) from exception
83
84 LOGGER.debug(
DownloadFailedException: Failed to download from: same_url
with HTTPError:
503 Server Error: Service Unavailable for url: same_url
Server response: “503 Service Unavailable No server is available to handle this request.”
Note: new users are limited to two url links, so same_url is the url listed above.