earth-search icon indicating copy to clipboard operation
earth-search copied to clipboard

API '500 Internal server error' in `sentinel-2-l2a` collection search

Open jose-lpa opened this issue 4 months ago • 0 comments

Hello,

We have a bunch of erroring requests, with 500 server errors, when performing searches through the sentinel-2-l2a collection.

Fortunately, I can give an exact example of a request failing. It is a search for a geographic point in Spain, and it fails on a specific page of the search results. I will give examples in curl to make it easy to reproduce:

:heavy_check_mark: Working (1st page)

curl -X POST "https://earth-search.aws.element84.com/v1/search" -H "Content-Type: application/json" -d '{"intersects": {"type": "Point", "coordinates": [-5.494315400763535, 41.74228292076255]}, "datetime": "2018-07-01T00:00:00Z/2019-06-30T00:00:00Z", "collections": ["sentinel-2-l2a"], "limit": 100, "page": 1, "query": {"eo:cloud_cover": {"lt": 75.0}}}'

:no_entry_sign: Not working (2nd page)

curl -X POST "https://earth-search.aws.element84.com/v1/search" -H "Content-Type: application/json" -d '{"intersects": {"type": "Point", "coordinates": [-5.494315400763535, 41.74228292076255]}, "datetime": "2018-07-01T00:00:00Z/2019-06-30T00:00:00Z", "collections": ["sentinel-2-l2a"], "limit": 100, "page": 2, "query": {"eo:cloud_cover": {"lt": 75.0}}}'

:heavy_check_mark: Working (3rd page)

curl -X POST "https://earth-search.aws.element84.com/v1/search" -H "Content-Type: application/json" -d '{"intersects": {"type": "Point", "coordinates": [-5.494315400763535, 41.74228292076255]}, "datetime": "2018-07-01T00:00:00Z/2019-06-30T00:00:00Z", "collections": ["sentinel-2-l2a"], "limit": 100, "page": 3, "query": {"eo:cloud_cover": {"lt": 75.0}}}'

...and the 4th page is working as well.

I wonder if this could be related to some mistake on our side as well?

Thanks.

jose-lpa avatar Oct 04 '24 13:10 jose-lpa