I've got a project Django, gunicorn, nginx.
It mostly works (most of the endpoints), but sometimes nginx throws 502 BAD GATEWAY.
Error is upstream prematurely closed connection while reading response header from upstream
Do you have any idea what's wrong with it?
Thanks!