For advice on troubleshooting, I would suggest posting to a new thread as the original underlying issue for this thread may not be related to issues you may be having. In general,
500s and
502s are very generic error messages. When using the flexible environment, your application is built into docker image using a
preset Dockerfile and then deployed to App Engine with an added docker entrypoint so the application container can be run. If using a custom runtime, the image is built using your own custom Dockerfile. In front of your resulting application container sits a separate container with an nginx process for serving static content and observing the handlers specified in your app.yaml.
- When posting to a new thread, I recommend the following:
- Where are you testing? Is this your App Engine application in production or in development?
- Are you using the flexible environment or standard environment?
- If using the flexible environment, are you using an App Engine-provided runtime or a custom runtime? (This and the previous question help us identify where the issue may be originating and how you can investigate the source for yourself)
- Is the error served from every handler or only a specific subset?
- If you only get errors with a subset of handlers, are those static assets or handlers served by your application?
- Is your application successful in responding to requests for a given handler?
The above are good starting points for investigating 500s served from your application. When posting new threads about such errors, please try to include as much of this information as possible so that others in the community can have a better defined picture of your the architecture at play and know what you've already looked at.
Should you decide to post a new thread, feel free to include a link to it here so that others in the community can follow through.