Skip to content

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