Nginx 502 bad gateway error

I’m trying to run API locally using Devilbox. It works properly for around 140 seconds and then throws a 502 Bad Gateway error. Is this a nginx timeout error or something else ?