On Tue, Feb 25, 2014 at 9:43 PM, Niels Buekers <[email protected]> wrote:
> I've got an application on App Engine (Java) with a Cloud SQL db behind > it. My mobile app connects with it via Cloud Endpoints. > > The issue is, that when I leave an instance idle for a long time, the next > time I do a request on an endpoint (even with a simple GET request in the > browser/Postman in Chrome), I almost always get a 204 No Content back. The > app engine logs just seeems normal. However, once I shutdown the instance, > and do the request again, I always get the response JSON i need. > > Furthermore, once it DOES respond, it keeps responding until I leave it > idle for a longer period. Then again I often get a HTTP 204. > The simplest solution is to continuously ping the instance with a cron job: the continuous stream of fake requests should prevent the instance from going idle. With that said, the intent of the 204 No Content reply is that the server has no new information to send back and that the previously-sent data does not need to be updated. Is your data source constantly changing? When you restart your instance and retrieve new response JSON, is it the same or different than the previously-sent data? ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.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 http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
