Open clowe-r7 opened 5 months ago
Turns out this is an issue with the interaction between an AWS ALB, the Flask app running behind it and I think the werkzeug upgrade. Essentially the ALB is using HTTPs and the Flask app responded with a redirect but for HTTP. I was able to follow the fix on this reddit post https://www.reddit.com/r/flask/comments/11luchr/redirect_is_using_http_instead_of_https/ to get it working again without modifying the API Client. I added app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_port=1)
here and it's working again as expected.
Describe the bug After upgrading to the latest version of Timesketch and the Timesketch API Client, a request fails when attempting to get information about a particular Sketch. The request ends up failing here with a timeout and a 308 status code using the resource uri defined at init.
To Reproduce Steps to reproduce the behavior:
Expected behavior A list of all sketches with the id, name and description printed out.
Desktop (please complete the following information):
Additional context I was able to fix this in my local virtual environment by appending a forward slash to the sketch resource uri at init of the class here so instead of
it became
and the request succeeded.
Full stacktrace