Skip to content
This repository was archived by the owner on Feb 18, 2021. It is now read-only.
This repository was archived by the owner on Feb 18, 2021. It is now read-only.

RuntimeError: dictionary changed size during iteration in _clean_params method #12

@BallsyWalnuts

Description

@BallsyWalnuts

when running the following code

hx_client.indicators.get_list_indicators_all_categories()

I get the following error

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-44-5142e5f3ced4> in <module>()
      3 # r = hx_client.indicators.get_list_conditions_for_indicator(category="Mandiant Intel", indicator='6c192775-f4df-4d2f-9410-7334ec7141ac')
      4 # r.json()
----> 5 test = hx_client.indicators.get_list_indicators_all_categories()
      6 test.json()

/usr/local/lib/python3.6/dist-packages/pyFireEye-0.1-py3.6.egg/pyFireEye/utilities/wrappers.py in wrap(*args, **kwargs)
    212         @wraps(func)
    213         def wrap(*args, **kwargs):
--> 214             response = func(*args, **kwargs)
    215             if not isinstance(response, Response):
    216                 raise ExpectedResponseException(response)

/usr/local/lib/python3.6/dist-packages/pyFireEye-0.1-py3.6.egg/pyFireEye/utilities/wrappers.py in wrap(self, *args, **kwargs)
    165             kwargs["route"] = _route_update(route=route, **kwargs)
    166             kwargs["method"] = method
--> 167             _clean_params(request_params, **kwargs)
    168             kwargs["params"] = _check_args(request_params, **kwargs)
    169             kwargs["json"] = _check_args(json_body, **kwargs)

/usr/local/lib/python3.6/dist-packages/pyFireEye-0.1-py3.6.egg/pyFireEye/utilities/wrappers.py in _clean_params(request_params, **kwargs)
     33     replaced_keys = []
     34 
---> 35     for k, v in kwargs.items():
     36         if k in param_arg_map and param_arg_map.get(k) in request_params:
     37             kwargs[param_arg_map.get(k)] = v

RuntimeError: dictionary changed size during iteration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions