Skip to content

search error - dictionary changed size during iteration #232

@sbrunato

Description

@sbrunato

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 / CS-SI/eodag@ff777d7
EODAG Labextension / develop branch / 612c1ca

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions