-
Notifications
You must be signed in to change notification settings - Fork 96
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
Comments
Hi Brother,utilities_call_call_rest_api would throw an addressable output in “results” if and only if the status code is 20x, also you will need a script after the function to access the playbook function output either to print or etc, this script will act as post processing script in workflows.On 18 Apr 2023, at 3:17 PM, Łukasz Tyński ***@***.***> wrote:
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
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
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 |
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. |
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
The text was updated successfully, but these errors were encountered: