You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialization of search results does not take care of Date/Datetime objects in metadata of Products fetched.
It might be an edge case but it might be interesting to fix it.
Error
TypeError: Object of type datetime is not JSON serializable
Thanks for pointing out this issue.
The problem is that eodag-sentinelsat uses datetime objects to store date metadata. We must use ISO-8601 str like for other providers instead
Serialization of search results does not take care of Date/Datetime objects in metadata of Products fetched.
It might be an edge case but it might be interesting to fix it.
Error
TypeError: Object of type datetime is not JSON serializable
Install sentinelsat plugin
Configure 'scihub' provider with highest priority.
Code To Reproduce
CLI command:
Output
![image](https://user-images.githubusercontent.com/5576272/114665381-40a2c480-9cfd-11eb-98a4-ed710134aefe.png)
Environment:
Additional context:
![image](https://user-images.githubusercontent.com/5576272/114665706-a68f4c00-9cfd-11eb-8e75-bc71124b9cab.png)
Using CS-SI/eodag#235 to configure the settings of this provider in an user configuration file.
Fix in my own code:
![image](https://user-images.githubusercontent.com/5576272/114665967-f66e1300-9cfd-11eb-9cfa-663aed544ed0.png)
The text was updated successfully, but these errors were encountered: