Upload 502 bad gateway

Hello everyone, I’m using nginx as a reverse proxy and everything is working except file upload, it’s working fine on my computer, but on digital ocean it keeps giving me 502 bad gateway.
error.log =>
2019/09/25 19:52:49 [error] 1503#1503: *43 upstream prematurely closed connection while reading response header from upstream, client: 201.17.79.204, server: api.sherlockinhome.com, request: “POST /picture/upload HTTP/1.1”, upstream: "http://127.0.0.1:3439/picture/

I tried searching solutions for nginx but nothing worked, maybe it’s realted to nodejs or adonisjs?

2 Likes