Ubuntu 16.04 Gunicorn, Flask, WSGI 502 Gateway Error
Hi Everyone! I’m using this to deploy my flask app. However I’m running into a 502 Gateway Error. I have looked at several posts, and I have not found a solution.
I have already added the extra slashes in the .ini file:
and that didn’t work. After checking the error logs, we found that we’re getting a
“upstream prematurely closed connection while reading response header from upstream client”. We’re guessing that we need to increase the timeout, but that didn’t work for us.
Any help would be appreciated!