Tianhui Li
Tianhui Li

Reputation: 111

Too many /_ah/warmup/ queries on Google App Engine

I'm getting multiple /_ah/warmup/ requests per second to my Google App Engine instance. I've disabled warmup requests so it's unclear why I'm getting any such requests.

A potential source of this error is that going to /_ah/warmup/ results in an error, even though the endpoint is implemented (see this file). Compare the results at /_ah/warmup (implemented) with the results at /_ah/warm (not implemented).

The app.yaml file (template) is available here. Code available here

Using Google App Engine via Node 12.

Upvotes: 0

Views: 353

Answers (1)

GAEfan
GAEfan

Reputation: 11360

Yes, those requests are still coming in from before you disabled them. They are looking to receive a valid response.

Notice the trailing slash for those incoming requests that fail? Handle those as well. Your Express router is not strict, so it should handle them. But, handle them explicitly, and the error will go away, and the requests will stop.

You might want to explore packages like express-slash to handle different scenarios.

Upvotes: 1

Related Questions