Hello, Thank you for using Google Groups!
>From what I understand, you are getting a "*502*: *BAD_GATEWAY*" error message when you try to deploy your application onto Google App Engine flexible. Additionally, your code base has been working on your local environment and this issue is only seen when trying to implement cloud technology. The good news is that I was able to find some troubleshooting documentation for this type of server error. Although, you may notice the links provided below point to the Cloud Endpoints documentation but the troubleshooting steps pertain to App Engine flexible so it would be worth while to checkout. Based on my research, flexible environment may take a few minutes to successfully respond to requests. Typically, when you encounter *5.x.x* (*502, 503, etc*) it is recommended to wait a minute and try the request again. You may find more information about these errors specific to App Engine flexible environment here <https://cloud.google.com/endpoints/docs/openapi/troubleshoot-response-errors#gae_errors> . However, most of the time the error code *502* with "*BAD_GATEWAY*" indicates that GAE terminated the application because it *ran out of memory*. By default, GAE: flex only has 1GB of memory and only 600MB is available for the application container. The following documentation here <https://cloud.google.com/endpoints/docs/openapi/troubleshoot-response-errors#error_message_bad_gateway> describes steps on how to troubleshoot this type of error (You will have to most likely investigate your Stackdriver logs <https://console.cloud.google.com/logs/viewer?_ga=2.65662126.-184740045.1554408906&_gac=1.241446198.1561606538.EAIaIQobChMIt4CCwd2I4wIVEbvsCh2sQgAHEAAYASAAEgKTJ_D_BwE> ). I hope this helps! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/50cc8224-0e8d-45a1-82fd-4111fd6fcc2e%40googlegroups.com.
