Since last night / this morning I’ve been receiving an error saying invalid request when trying to get any imagery data. I’m using the python package and creating a WMS request. The request can be created shows a valid request, I can get dates from the imagery but as soon as I try to get the data it returns an error 400 invalid request. This exact request worked last night.
box = BBox(bbox = Coordinates,crs=CRS.WGS84)
w,h = bbox_to_dimensions(box, 10)
#we'll request the sentinel 2a images over the last month
wms_request = WmsRequest(data_source=DataSource.SENTINEL2_L2A,
layer='ALLBANDSFLOAT',
bbox=box,
time=(datetime.datetime.today() - datetime.timedelta(days = 30), datetime.datetime.today()),
width=w,image_format=MimeType.TIFF_d32f,
config = config)
ALLBANDSFLOAT is a custom v3 script set to return a full image in float format and was working until yesterday. I tried basic scripts as well and all return the same error.
wms_request.get_data() returns this error with my instance ID censored.
Failed to download from:
https://services.sentinel-hub.com/ogc/wms/******************************************************?SERVICE=wms&MAXCC=100.0&BBOX=-37.06938%2C140.84246%2C-37.06162%2C140.86037&FORMAT=image%2Ftiff%3Bdepth%3D32f&CRS=EPSG%3A4326&TIME=2020-11-12T00%3A47%3A12%2F2020-11-12T00%3A47%3A12&WIDTH=159&HEIGHT=86&LAYERS=ALLBANDSFLOAT&REQUEST=GetMap&VERSION=1.3.0
with HTTPError:
400 Client Error: Bad Request for url: https://services.sentinel-hub.com/ogc/wms/***************************************************?SERVICE=wms&MAXCC=100.0&BBOX=-37.06938%2C140.84246%2C-37.06162%2C140.86037&FORMAT=image%2Ftiff%3Bdepth%3D32f&CRS=EPSG%3A4326&TIME=2020-11-12T00%3A47%3A12%2F2020-11-12T00%3A47%3A12&WIDTH=159&HEIGHT=86&LAYERS=ALLBANDSFLOAT&REQUEST=GetMap&VERSION=1.3.0
Server response: "Invalid request"
I should say my colleague with a different account is also getting the exact same error.