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

Update TheHiveConnector.py #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update TheHiveConnector.py #51

wants to merge 1 commit into from

Conversation

B3LI4D
Copy link

@B3LI4D B3LI4D commented Mar 31, 2020

Traceback (most recent call last):
File "/home/snort/Synapse/workflows/Ews2Case.py", line 103, in connectEws
comment)
File "/home/snort/Synapse/workflows/objects/TheHiveConnector.py", line 167, in addFileObservable
esObservableId = response.json()['id']
TypeError: list indices must be integers or slices, not str

response.json()['id'] return a list not a dict, we accessed the list to access the dictionary

Traceback (most recent call last):
  File "/home/snort/Synapse/workflows/Ews2Case.py", line 103, in connectEws
    comment)
  File "/home/snort/Synapse/workflows/objects/TheHiveConnector.py", line 167, in addFileObservable
    esObservableId = response.json()['id']
TypeError: list indices must be integers or slices, not str

response.json()['id'] return a list not a dict, we accessed the list to access the dictionary
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 this pull request may close these issues.

1 participant