My frontend client written in Angular 8, occasionally throws a 504 Gateway error for my api requests. My API is hosted in AppEngine Standard env, with a min of 5 instances always active. Backend API written in nodejs + express.
Since its a 504 gateway timeout, none of the errors are captured by the backend logging.
How can I debug this to find out what's causing my errors?