I have a stack of Flask, Nginx, Gunicorn deployed on AWS. There are a set of API routes present on it, and when I try to make requests to the /api/login path, the Postman request hangs randomly. At this point, I do not see any change in nginx error log( enabled with debug), flask+ gunicorn application logs (flask logs connected to gunicorn logs, on Debug level), or even the TCPdump and tshark running on the server do not log any packets sent or recieved during that time.
The requests remains pending in Postman for a very long time, and never gets resolved, only throwing an error
Error: socket hang up
Warning: This request did not get sent completely and might not have all the required system headers
Most of the requests go through fine, but every once in a while one will hang like this.