502 - Gateway error

Hi,

There are a lot of variables and without any log lines to work with, it’s hard to diagnose.

It may be worth investigating whether your app is prematurely closing the connection. Experiment with any timeout values. That idea was from this post. It seemed to resolve their 502 issue (which may be unrelated of course):