FISRequest returns HTTPError 400 for polygon

When using the Python API, a FisRequest for geometry1 works, but returns an error 400 for geometry2?

geometry1 = Geometry(Polygon([(-5.13, 48),(-5.23, 48.09),(-5.13, 48.17),(-5.03, 48.08),(-5.13, 48)]),CRS.WGS84)
geometry2 = Geometry(Polygon([(7.165, 60.433),(7.532, 60.635), (7.868 ,60.450), (7.523 ,60.296), (7.165, 60.433)]),CRS.WGS84)

Server response: “Invalid request”

The actual request:
FisRequest(layer=LAYER,
geometry_list=[geometry],
time=time_interval,
resolution=‘10m’,
data_folder=‘temp’,
bins=20,
histogram_type=HistogramType.EQUALFREQUENCY,
config=config)

The LAYER = ‘RATIO’ and the instance_id ~ ‘5bd19417-5b5b-4b6f-xxxx’

Any idea what we do wrong?

Hi @Tech,

The second geometry seems to cover quite a large area (QGIS says approx. 73000 ha), which, at 10m resolution sounds a lot of data to go through.

Please try using resolution='250m' and/or on a shorter time_interval to see if the that might help. SH service is trying to be smart with FIS, but using such large requests might time-out.

Best,
Matej

Thank you, this solved the issue.