Nginx 502 Bad Gateway when uploading files

Solution 1:

Might want to check with your Node Application see if its reporting any errors? In the past using nginx with php file uploads i would get the occasional 502 due to the size of my file so i increased it in the master nginx.conf using the following '#Body Size client_max_body_size 900m;' hope that helps