H19
- What the docs say
- The router gets a connection timeout after 5 seconds of trying to open a socket to a web dyno
A Heroku 503 is one of about 17 router codes, from H10 to H99. Read the code in the router log, then use this map to the right fix, or to a Heroku-side wait.
Heroku's router returns 503 for many different failures, and each one logs an H code: H10 crashed app, H11 backlog, H12 timeout, H14 no web dynos, H19 and H21 connection problems, H80 maintenance mode, H82 dyno hours used up, H99 platform error. The browser page looks the same for all of them. Read code=H.. in heroku logs --dyno router, then follow the map below.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
status=503. The one that does not is H81 (Blank app), which logs status=502.| Code | Meaning in Heroku's words | Who acts | Where to go |
|---|---|---|---|
| H10 | App crashed | You | H10: App crashed |
| H12 | Request timeout | You | H12: Request timeout |
| H13 | Connection closed without response | You | H13 |
| H14 | No web processes running | You | H14 |
| H11, H22 | Backlog too deep, connection limit reached | You (capacity) | Capacity section below |
| H19, H21, H34 | Backend connection timeout, refused, all up dynos quarantined | You (usually load) | Capacity section below |
| H20 | App boot timeout | You | Boot section below |
| H15, H17, H18 | Idle connection, poorly formatted response, server request interrupted | You | Heroku error codes article |
| H80, H82, H83 | Maintenance mode, dyno hour pool used up, planned service degradation | You, you, Heroku | Not-a-fault section below |
| H99 | Platform error | Heroku | Try again in a minute, check the status site |
heroku logs --dyno router --tail \
| grep --line-buffered -o 'code=H[0-9]* desc="[^"]*"' 2 code=H12 desc="Request timeout"
1 code=H80 desc="Maintenance mode"
1 code=H10 desc="App crashed"curl -sS -o /dev/null -w "%{http_code}\n" https://httpbin.org/status/503
# observed: 503If one code dominates, go straight to its row above. If several appear, start with the one that shows up first in the log, since later codes can be a consequence.
H22 reports an elevated number of HTTP client connections reaching the app, which Heroku reads as heavy load with slow responses.
up, and logs H20 if none do. R10 is narrower: the web process must bind to its assigned $PORT within 60 seconds, or the dyno is killed and counts as crashed.Heroku's documented causes are an app that cannot reach an external resource such as a database at start-up, an app doing too much work at start-up, and the Rails asset pipeline running at boot instead of at git push. The boot timeout tool can raise the limit for Cedar apps but is not available for Fir, and Heroku calls it a temporary solution because slow boots slow deploys and recovery. The H10 page covers the $PORT binding itself.
heroku maintenance to check it and heroku maintenance:off to end itheroku maintenance:on
heroku maintenance
heroku maintenance:off3 questions people ask next, answered from the sources on this page.
The router could not get a valid answer from your web dyno, and each cause logs an H code such as H10, H12 or H14. Run heroku logs --dyno router and read the code= value, because the page shown to visitors is the same for all of them.
No. Heroku's error-code article says H80 is not an error and gives it a code for completeness. It means maintenance mode is on, and the router logs at=info with status=503.
H99 is a Heroku platform error. The docs say it is one of only two codes, with R99, that represent errors in the platform, and that it needs no action from you. Try again in a minute or check the Heroku status site.
Run the free audit, then approve the fixes. Every change can be undone.