I'm not sure how much this has to do specifically with the application in question, but an otherwise well-functioning appengine app will start seeing lots and lots of 502 errors from Google on occasion.
This is extremely disruptive to the app's users and requires some manual data cleanup each time, which is frustrating. There are no logging indicators that show these 502 responses, so I can only presume that the response is generated upstream from the application's infrastructure.
Any idea what's going on? Here is some more information about the app:
It's a golang app running on the flexible environment.
It relies on the appengine datastore, although even requests to handlers that make no datastore connections are failing with 502.
I feel like this is a routing/timeout problem between
ghs.googlehosted.com and the appengine infrastructure, given the lack of logging. Can anyone from Google comment on that hypothesis?