While this is important, I would recommend filing an issue on the App Engine public issue tracker <https://code.google.com/p/googleappengine/issues/list> as that seems like a more appropriate forum for such a report. This discussion group is generally better suited for exchanging best practices and general guidance.
I'd suggest including or doing the following: - Sample code of exactly what Nodejs code is running for each handler ( */* and */test*). This will allow us to test this for ourselves. - Are you using the nodejs runtime or a custom runtime with a Dockerfile importing a Node.js base image <https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build#configuring_the_dockerfile> ? - In the flexible environment, the nginx process sits in front or your Nodejs application container proxying requests and responses to/from the user. For the nginx process to serve *502 BAD GATEWAY* to the user does not indicate much that's conclusive. It may simply timeout while waiting for the application container and serve the user a *502*. - To be sure what might be going on, I'd suggest logging in you */test* handler before and after each Datastore-related function to determine exactly where the application is hanging. As there is currently no known outage for Cloud Datastore, it seems more likely that the application is hanging during some request to the Cloud Datastore than the instance not being able to communicate with it. Once you've tested the above and included it in the public issue you filed, post a link to said issue here so that others in the community can follow through should they be experiencing the same issue. Regards, Nicholas On Wednesday, February 1, 2017 at 9:16:00 AM UTC-5, Tony Stark wrote: > > Since yesterday does not work datastore through the flex evironment. > Application just not receives the response from the datastore. If I run the > application locally, everything works. If I try to do those operations in > app engine - it does not work. The answer does not come from the server. If > wait a long time, the message from the nginx is "502 Bad Gateway". > > There are no errors in the app; it works locally. And even before > yesterday everything worked perfectly in the app engine. > > https://lynkus-api-test.appspot.com/test - here is no request to the > datastore, the answer comes from the application. > https://lynkus-api-test.appspot.com - here is a request, but there is no > answer :( > > if you go in the app engine instance, in /var/log/nginx/error.log there > are reports like this: > > 2017/02/01 09:15:59 [error] 32#32: *736 upstream prematurely closed > connection while reading response header from upstream, client: > 130.211.3.225, server: , request: "GET / HTTP/1.1", upstream: " > http://172.18.0.2:80/", host: "lynkus-api-test.appspot.com" > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/460f92ce-f1c9-4cf5-afb9-659235ab7d1f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
