Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check dates validity before search #964

Open
arpitdeomurari opened this issue Dec 17, 2023 · 1 comment
Open

check dates validity before search #964

arpitdeomurari opened this issue Dec 17, 2023 · 1 comment

Comments

@arpitdeomurari
Copy link

Hi Team,

I'm trying to download S2_MSI_L1C data from PEPS.
It was working perfectly from eodag (Python program to download S2 images), but suddenly it started giving an Internal Error 500.

Query string:
https://peps.cnes.fr/resto/api/collections/S2ST/search.json?startDate=2020-01-01&completionDate=2023-11-31&geometry=MULTIPOLYGON (((75.1998 12.4642, 75.8102 12.4630, 75.8080 11.8702, 75.1998 11.8712, 75.1998 12.4642)))&productType=S2MSI1C&maxRecords=500&page=1

Response String:
500 Server Error: Internal Server Error for url: https://peps.cnes.fr/resto/api/collections/S2ST/search.json?startDate=2020-01-01&completionDate=2023-11-31&geometry=MULTIPOLYGON%20(((75.1998%2012.4642,%2075.8102%2012.4630,%2075.8080%2011.8702,%2075.1998%2011.8712,%2075.1998%2012.4642)))&productType=S2MSI1C&maxRecords=500&page=1

@sbrunato
Copy link
Collaborator

Hello @arpitdeomurari , this error 500 is raised by peps because the provider cannot handle the given end date: 2023-11-31 that does not exist.
The message sent by peps is not very explicit. One thing we could do on eodag side, would be to check dates validity before sending the request to the provider

@sbrunato sbrunato changed the title PEPS Eodag S2 Download Issues: Error 500 check dates validity before search Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants