semiautomaticgit / SemiAutomaticClassificationPlugin

https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html
Other
136 stars 50 forks source link

Search failed (cannot unpack non-iterable NoneType object) #311

Open SavelevGeo opened 8 months ago

SavelevGeo commented 8 months ago

After installing new version cannot run a search of products

The last messages, occurring around search attempt are

ERROR|2023-11-01T16:17:23.778|multiprocess_manager|multi_download_file|2317|Error proc 0-cannot unpack non-iterable NoneType object
ERROR|2023-11-01T16:17:23.779|download_products|query_sentinel_2_database|357|error: search failed
DEBUG|2023-11-01T16:17:23.827|ui_utils|remove_progress_bar|257|end progress: None

the full log: scp.log.txt

semiautomaticgit commented 8 months ago

Hi @SavelevGeo , I think it is a server issue when the extent of the query is small.

If you run your query in the browser from this link)%20and%20ContentDate/Start%20ge%202022-11-01T00:00:00.000Z%20and%20ContentDate/Start%20lt%202023-11-01T21:42:55.721Z%20and%20OData.CSC.Intersects(area=geography%27SRID=4326;POLYGON%20((30.215749730569%2059.972316106039,30.215749730569%2059.911163859208,30.366809710932%2059.911163859208,30.366809710932%2059.972316106039,30.215749730569%2059.972316106039))%27)&$orderby=ContentDate/Start%20asc&$expand=Attributes&$count=True&$top=20&$skip=0) it takes a really long time to complete, and the SCP connection times out.

But if you try with a larger area as from this link)%20and%20ContentDate/Start%20ge%202022-11-01T00:00:00.000Z%20and%20ContentDate/Start%20lt%202023-11-01T21:42:55.721Z%20and%20OData.CSC.Intersects(area=geography%27SRID=4326;POLYGON%20((29.889110450471%2060.087627981762,29.889110450471%2059.779703368819,30.864788914159%2059.779703368819,30.864788914159%2060.087627981762,29.889110450471%2060.087627981762))%27)&$orderby=ContentDate/Start%20asc&$expand=Attributes&$count=True&$top=20&$skip=0) the result is much faster.

So the solution is to search with a larger area.