eodag-labextension icon indicating copy to clipboard operation
eodag-labextension copied to clipboard

search error - dictionary changed size during iteration

Open sbrunato opened this issue 9 months ago • 0 comments

Issue that occured when doing a simple search on peps / S1_SAR_GRD:

dictionary changed size during iteration

Traceback (most recent call last):
  File "/home/sylvain/workspace/eodag-labextension/eodag_labextension/handlers.py", line 58, in inner_function
    return await func(handler, *args, **kwargs)
  File "/home/sylvain/workspace/eodag-labextension/eodag_labextension/handlers.py", line 402, in post
    products = await current_loop.run_in_executor(
  File "/home/sylvain/.local/share/uv/python/cpython-3.9.20-linux-x86_64-gnu/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/sylvain/workspace/eodag-labextension/.venv/lib/python3.9/site-packages/eodag/api/core.py", line 1211, in search
    search_results = self._do_search(
  File "/home/sylvain/workspace/eodag-labextension/.venv/lib/python3.9/site-packages/eodag/api/core.py", line 1902, in _do_search
    eo_product.product_type = self.get_product_type_from_alias(
  File "/home/sylvain/workspace/eodag-labextension/.venv/lib/python3.9/site-packages/eodag/api/core.py", line 980, in get_product_type_from_alias
    product_types = [
  File "/home/sylvain/workspace/eodag-labextension/.venv/lib/python3.9/site-packages/eodag/api/core.py", line 980, in <listcomp>
    product_types = [
RuntimeError: dictionary changed size during iteration

EODAG / develop branch / https://github.com/CS-SI/eodag/commit/ff777d7a1e33f612c5227dba4fecfcec55ff18fc EODAG Labextension / develop branch / 612c1ca

sbrunato avatar Jun 20 '25 09:06 sbrunato