Google-styled 502 errors

41 views
Skip to first unread message

Владимир Соломатин

unread,
Jul 24, 2017, 12:04:29 PM7/24/17
to Google App Engine
Hello!

Sometimes our users are getting Google-styled 502 Bad Gateway error page instead of our server response on POST request. According to Stackdriver Logging, we are not to blame at this, there are no errors, the request is just like another successful requests.
Here is example request id if necessary: 5975d28e00ff07b8225bcaf1340001737e626c69747a74696e7961726d7970616e6f72616d696300017374616765000100.

We are using frontend instances of App Engine Standard Environment with Python 2.7 and Werkzeug wsgi server and don't return 502 status code anywhere.

Please help us with identifying the error source. Thank you!

Kenworth (Google Cloud Platform)

unread,
Jul 24, 2017, 5:37:01 PM7/24/17
to Google App Engine
Can you send me the project-id privately?

Attila-Mihaly Balazs

unread,
Jul 25, 2017, 9:18:31 AM7/25/17
to Google App Engine
Hello,

You might be interested in the "error_handlers" section of the app.yaml (see https://cloud.google.com/appengine/docs/standard/python/config/appref). Sometimes there might be errors which are not explicitly produced by your code but are still present (like timeout errors) and you can use this section to customize the error page shown in these situations.

Regards,
Attila
Reply all
Reply to author
Forward
0 new messages