Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logstash messenger ends with AttributeError: 'list' object has no attribute 'items' #127

Open
alexcos78 opened this issue Jun 20, 2024 · 0 comments · May be fixed by #128
Open

Logstash messenger ends with AttributeError: 'list' object has no attribute 'items' #127

alexcos78 opened this issue Jun 20, 2024 · 0 comments · May be fixed by #128

Comments

@alexcos78
Copy link

Description

Logstash messanger does not work due to the following error

2024-05-05 17:45:55.324 4173 ERROR caso.messenger [-] Something happeneded when pushing records. 2024-05-05 17:45:55.325 4173 ERROR caso.messenger [-] 'list' object has no attribute 'items': AttributeError: 'list' object has no attribute 'items' 2024-05-05 17:45:55.325 4173 ERROR caso.messenger Traceback (most recent call last): 2024-05-05 17:45:55.325 4173 ERROR caso.messenger File "/usr/local/lib/python3.10/dist-packages/caso/messenger/__init__.py", line 56, in push_to_all 2024-05-05 17:45:55.325 4173 ERROR caso.messenger self.mgr.map_method("push", records) 2024-05-05 17:45:55.325 4173 ERROR caso.messenger File "/usr/local/lib/python3.10/dist-packages/stevedore/extension.py", line 305, in map_method 2024-05-05 17:45:55.325 4173 ERROR caso.messenger return self.map(self._call_extension_method, 2024-05-05 17:45:55.325 4173 ERROR caso.messenger File "/usr/local/lib/python3.10/dist-packages/stevedore/extension.py", line 279, in map 2024-05-05 17:45:55.325 4173 ERROR caso.messenger self._invoke_one_plugin(response.append, func, e, args, kwds) 2024-05-05 17:45:55.325 4173 ERROR caso.messenger File "/usr/local/lib/python3.10/dist-packages/stevedore/extension.py", line 310, in _invoke_one_plugin 2024-05-05 17:45:55.325 4173 ERROR caso.messenger response_callback(func(e, *args, **kwds)) 2024-05-05 17:45:55.325 4173 ERROR caso.messenger File "/usr/local/lib/python3.10/dist-packages/stevedore/extension.py", line 284, in _call_extension_method 2024-05-05 17:45:55.325 4173 ERROR caso.messenger return getattr(extension.obj, method_name)(*args, **kwds) 2024-05-05 17:45:55.325 4173 ERROR caso.messenger File "/usr/local/lib/python3.10/dist-packages/caso/messenger/logstash.py", line 58, in push 2024-05-05 17:45:55.325 4173 ERROR caso.messenger for _, record in six.iteritems(records): 2024-05-05 17:45:55.325 4173 ERROR caso.messenger File "/usr/lib/python3/dist-packages/six.py", line 605, in iteritems 2024-05-05 17:45:55.325 4173 ERROR caso.messenger return iter(d.items(**kw)) 2024-05-05 17:45:55.325 4173 ERROR caso.messenger AttributeError: 'list' object has no attribute 'items'

Steps to Reproduce

  1. Run caso-extract with logstash messanger enabled

Expected behavior:

Records are sent to logstash

Actual behavior

Records are not sent to logstash

Versions

cASO 4.1.2

@alexcos78 alexcos78 linked a pull request Jun 20, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant