Why are there multiple 408 errors in App Platform's runtime logs?

Multiple 408 errors are often caused by your app sending health checks with very short timeouts to App Platform. They typically don’t affect the functionality of the app.

Some apps, especially PHP apps, send health checks that time out before App Platform responds, and this causes the 408 error. You can’t prevent the 408 errors from appearing in the runtime logs because you can’t filter or suppress the health checks.

If an app’s health check fails, the app currently does not restart. This is because App Platform does not currently support liveness probes. An app only automatically restarts if the app crashes or if its disk or RAM usage exceeds the its limits.
You can find the client IP address of a request connecting to your app in the do-connecting-ip HTTP header.
Timeouts can be caused by high CPU utilization, so check your app’s CPU utilization and consider scaling your app.
In this article...