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

[utilities_call_rest_api.py] - response handling problem #90

Open
lukasztynski opened this issue Apr 18, 2023 · 3 comments
Open

[utilities_call_rest_api.py] - response handling problem #90

lukasztynski opened this issue Apr 18, 2023 · 3 comments

Comments

@lukasztynski
Copy link

Hi,

I have a problem with handling the information obtained by the utilities_call_rest_api.py function.
When sending a request to MISP, I would like to get the json and be able to work with it further.
This is the response I would like to process, and the response itself indicates that the entry is already in the list (I have no problem handling the data using python in VSC and pycharm).
In the situation where the entry exists, I have no problem getting the data and processing it in the playbook itself.

Please do not suggest an error message 403, the error lies somewhere on the side of utilities_call_call_rest_api.py - please verify and possibly reply quickly.

Thanks
Łukasz Tyński

2023-04-18_14h57_14
2023-04-18_15h15_46
2023-04-18_15h14_24

@Aceilies
Copy link

Aceilies commented Apr 18, 2023 via email

@lukasztynski
Copy link
Author

HI, Thanks for the clarification, the problem is that this is where the 403 error code is returned and it affects the playbook to abort. Is there any way to further handle this in the playbook? Is it possible for such a node to take a failed value, which I could further use in the playbook?

Thanks
Łukasz Tyński

@lukasztynski
Copy link
Author

I tried to handle this with the script after the function, but as you wrote it does not work in the situation of returning the code 403, in the case of code 200 the same solution works fine. If I use this in workflow, the effect will be the same, is there any way to do it? I attach a simple example.

2023-04-19_09h02_20
Thanks
Łukasz Tyński

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

No branches or pull requests

2 participants