We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 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'
Records are sent to logstash
Records are not sent to logstash
cASO 4.1.2
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
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
Expected behavior:
Records are sent to logstash
Actual behavior
Records are not sent to logstash
Versions
cASO 4.1.2
The text was updated successfully, but these errors were encountered: