Closed dimovys closed 2 months ago
I found 1 more bug, if you disable these parameters, they will be disabled, but with a new edit they will be enabled, and if you do not disable them again, they will be enabled after editing.
Hi,
Just to add to the webhook scenario......
When i try to save a webhook url to a REGEX, WORD or YARA tracker i get the same blank output as above .the output from the screen is below but it doesnt save any value
"POST /tracker/edit HTTP/1.0" 302 - "GET /tracker/show?uuid=d8b0337a-1ab5-4fcf-b70e-9338065a28c3 HTTP/1.0" 200 - "GET /static/css/bootstrap4.min.css HTTP/1.0" 304 - "GET /static/css/font-awesome.min.css HTTP/1.0" 304 - "GET /static/css/daterangepicker.min.css HTTP/1.0" 304 - "GET /static/css/dataTables.bootstrap.min.css HTTP/1.0" 304 - "GET /static/js/jquery.js HTTP/1.0" 304 - "GET /static/js/popper.min.js HTTP/1.0" 304 - "GET /static/js/bootstrap4.min.js HTTP/1.0" 304 - "GET /static/js/jquery.dataTables.min.js HTTP/1.0" 304 - "GET /static/js/dataTables.bootstrap.min.js HTTP/1.0" 304 - "GET /static/js/d3.min.js HTTP/1.0" 304 - "GET /static/js/d3/sparklines.js HTTP/1.0" 304 - "GET /static/js/d3/graphlinesgroup.js HTTP/1.0" 304 - "GET /static/js/moment.min.js HTTP/1.0" 304 - "GET /static/js/jquery.daterangepicker.min.js HTTP/1.0" 304 - "GET /static/image/ail-project-inverted.png HTTP/1.0" 304 - "GET /tracker/graph/json?uuid=d8b0337a-1ab5-4fcf-b70e-9338065a28c3 HTTP/1.0" 200 -
If i try to add a webhook to a SET tracker i get a internal 500 server error and the below output on screen and if i also make a SET tracker and then try edit it , it gives this error also.
ERROR in app: Exception on /tracker/edit [POST] Traceback (most recent call last): File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 2190, in wsgi_app response = self.full_dispatch_request() File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 1487, in full_dispatch_request return self.finalize_request(rv) File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 1506, in finalize_request response = self.make_response(rv) File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 1801, in make_response raise TypeError( TypeError: The view function for 'hunters.tracker_edit' did not return a valid response. The function either returned None or ended without a return statement. Exception on /tracker/edit [POST] Traceback (most recent call last): File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 2190, in wsgi_app response = self.full_dispatch_request() File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 1487, in full_dispatch_request return self.finalize_request(rv) File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 1506, in finalize_request response = self.make_response(rv) File "ail-framework/AILENV/lib/python3.8/site-packages/flask/app.py", line 1801, in make_response raise TypeError( TypeError: The view function for 'hunters.tracker_edit' did not return a valid response. The function either returned None or ended without a return statement.
Hope this helps find the source of the issue as i am not having luck with setting up webhooks on trackers.
Hi @dimovys @fearanp ! Thanks for the report ! Fixed with 1c0468e7c009cc493bb0229d6e6206c35ecc2efd
webhook now saves but doesn't work :(
I have configured a webhook listener on a host with an ail-framework for debugging
and am trying to send a webhook to it from a word type tracker
and my local listener doesn't receive anything from ail-framework, but receives data from the curl request
curl -H 'Content-Type: application/json' -d '{ "title":"foo","body":"bar", "id": 1}' -X POST adress:8090
Greetings! I'm trying to set up a webhook for trackers and I'm faced with the fact that the webhook is not saved when creating and changing traskers. I couldn't debug the project on my own :(
![image](https://github.com/ail-project/ail-framework/assets/99807281/c9fa2281-f6f9-4616-96f0-eb29a7f5dfee)