A Rendered Page Failed
Your URL monitor has JavaScript rendering on: after your server answers with a good status code, DownBad also opens the page in a real web browser and lets its JavaScript (the code that runs inside a web page) run, the way a visitor’s browser would. Rendering is that step of the browser building the page you see. This time the page didn’t render cleanly. This page helps you find out what the browser saw, fix it, and watch the incident close.
What you’re seeing
Section titled “What you’re seeing”An incident is open for a URL monitor whose page didn’t render. The reason it
shows starts with one of two phrases. The page did not render cleanly: means
the browser loaded the page and something on it went wrong.
The page could not be rendered: means the browser couldn’t finish loading
the page at all. One more reason belongs here too, for a page that answered too
slowly to leave time for the browser. These are all the reasons:
The page did not render cleanly: Script <address> failed to load (<why>)The page did not render cleanly: Script <address> returned HTTP <status>The page did not render cleanly: Stylesheet <address> failed to load (<why>)The page did not render cleanly: Stylesheet <address> returned HTTP <status>The page did not render cleanly: Uncaught JavaScript error: <the error>The page did not render cleanly: Console error: <what the page logged>The page did not render cleanly: The page's app root (<selector>) is still empty after the page settledThe page did not render cleanly: The page shows no visible text after it settledThe page could not be rendered: <address> was refused: <why the address is refused>The page could not be rendered: The page did not finish rendering within <n> msThe page could not be rendered: <what the browser reported>The page answered too slowly to leave time to render it within the check timeoutParts in <…> are filled in from your page: <address> is the web address
of the file or page, and <the error> is the error message, word for word.
When more than one thing went wrong, the reason names one of them, in this order:
- A script (a file of JavaScript) or a stylesheet (a file that sets how the page looks) from your page’s own site that failed to load. It comes first because it’s a file you can find and fix, and it is often what broke the rest.
- An uncaught JavaScript error: an error the page’s code threw and nothing in the code handled.
- A console error: an error message the page’s code wrote to the browser’s console (the browser’s log of messages from the page).
- A blank render: the page shows nothing once it has loaded.
When the reason names a file and the page also threw an error, the error is
quoted after it, behind Also:, because the two may have nothing to do with
each other:
The page did not render cleanly: Script https://example.com/assets/app.js returned HTTP 404. Also: Uncaught JavaScript error: app is not definedThe incident and every alert link to the section of this page for the cause the reason names first.
Is it you or us?
Section titled “Is it you or us?”Usually it’s the page. A broken script, a missing file or a page that only fills in for a signed-in visitor fails the same way for anyone who opens it with nothing in their browser yet.
A rendered check is judged once, by DownBad’s own browser. A plain URL check that fails is checked again from other places before an incident opens, but those places can’t run a browser, so a rendered failure isn’t checked again anywhere else. If DownBad’s own browser service is down or too busy, the check is skipped instead of failed, so that never opens an incident.
DownBad’s browser can still see a different page from yours:
- It starts empty every time. It keeps no cookies (small notes a site stores in your browser, such as the one that keeps you signed in), no saved data and no cache (copies of files from earlier visits). A page that only fills in once you’re signed in is blank for DownBad.
- It doesn’t run service workers. A service worker is a script some sites install in your browser to serve the page from saved copies, even offline. Your browser may be showing a saved copy that still works.
- It asks plainly. The browser asks for the page with a plain request that carries none of the monitor’s HTTP Headers and doesn’t use its Method or Request Body. It follows redirects even when the monitor’s Follow Redirects is off, because those settings apply only to the first, plain check of the status code.
- It refuses private addresses. It won’t load anything from a private
address (an address that only works inside one network, such as
192.168.1.10orlocalhost). See The page was blocked.
To look without a terminal (the window where you type commands: Terminal on a Mac, PowerShell on Windows), open the page in a private window (one that starts with no cookies: New Incognito Window in Chrome, New InPrivate Window in Edge, New Private Window in Firefox and Safari). That is the closest your browser gets to what DownBad’s browser sees. Check it yourself shows where to look.
Check it yourself
Section titled “Check it yourself”These checks show you what DownBad’s browser saw. They only read, and change nothing.
1. Open the page with the browser’s developer tools. The developer tools are the panels a browser has for looking inside a page. In a private window, press F12 (on a Mac, Cmd+Option+I), then open the monitor’s address.
- The Console tab lists the page’s errors in red. An uncaught error shows
the same message as the incident’s
Uncaught JavaScript error:. - The Network tab lists every file the page asked for. Reload the page
with the tab open, then choose JS to see scripts or CSS to see
stylesheets. A row in red, or with a Status of 400 or more, is a file
that failed. An HTTP status code is the three-digit number a server
answers with:
200means it worked and404means not found.
If the page works here but not for DownBad, look for something your own browser has that DownBad’s doesn’t, as Is it you or us? lists.
2. Ask for a file the reason names. When the reason names a script or
stylesheet, this asks your server for that file and prints the status code it
answers with. It uses curl, a tool for fetching web addresses, which comes
with macOS, most kinds of Linux, and
every installation of Windows 10 and 11.
-m 23 gives up after 23 seconds. Put the address from the reason in place of
https://example.com/assets/app.js.
curl -sS -m 23 -o /dev/null -w "%{http_code}\n" https://example.com/assets/app.js200404curl -sS -m 23 -o /dev/null -w "%{http_code}\n" https://example.com/assets/app.js200404curl.exe -sS -m 23 -o NUL -w "%{http_code}\n" https://example.com/assets/app.js200404When the file’s server can’t be reached at all, curl prints its own error and
then 000 instead of a status code:
curl: (6) Could not resolve host: no-such-host.example.invalid000The example outputs on the macOS and Linux tabs are real runs. The output on the Windows tab is copied from them, since Windows runs the same curl.
Without a terminal: open the file’s address in a private window. A file that works shows its code as text; a missing one shows your site’s “not found” page or an error.
Fix it
Section titled “Fix it”Find the section for the reason the incident shows. A reason that names a
Script or Stylesheet is a file that failed; Uncaught JavaScript error is
a thrown error; Console error is a logged error; app root or
no visible text is a blank page; was refused is a blocked address; and
every other reason, including the one about answering too slowly, means the
page couldn’t be rendered.
A script or stylesheet failed to load
Section titled “A script or stylesheet failed to load”The reason names a script or stylesheet from the same site as your page that didn’t arrive:
returned HTTP <status>: your server answered, with an error status code such as404(not found) or500(the server failed).failed to load (<why>): the browser got no answer.<why>is the browser’s own code for what went wrong, such asnet::ERR_TUNNEL_CONNECTION_FAILED(DownBad’s browser couldn’t reach the server for that file).
Only files from the page’s own site count here: the same scheme (https://),
name and port as the address the page ended up at. A file from another site,
such as a CDN (a service such as Cloudflare that serves copies of files
from many places), doesn’t fail the check by itself. It can still leave the
page blank or make its code throw an error.
The most common cause is a new release: the page still names a file by its
old name, such as app-3f9a.js, and the release removed it. A page held in a
cache, at a CDN or in your server, can keep naming the old file after the
release.
-
Run step 2 of Check it yourself with the address the reason names, and note the status code.
-
If the file is missing, put it back or redeploy your site so the page names files that exist. If a CDN serves your pages, clear its cache once the release is out; on Cloudflare, see Purge cache.
-
If the server answers
500or another5xxcode, the server failed while sending the file: look in your server’s or app’s error log for that address. -
If the browser got no answer, check that the file’s address is right and that its server is up, the same way as for the page itself.
-
If the reason also quotes an error after
Also:, read The page threw a JavaScript error too: fixing the file may not fix the error. -
Run step 2 of Check it yourself again, then follow Confirm DownBad sees the fix.
The page threw a JavaScript error
Section titled “The page threw a JavaScript error”The reason quotes the error’s message after Uncaught JavaScript error:, word
for word, such as Cannot read properties of undefined (reading 'mount').
The page’s code ran into something it didn’t expect and stopped. Any script on
the page can throw one, including one from another site. A page can throw an
error and still show its content, and the check still fails, because the
error often means part of the page doesn’t work.
Common causes are a release with a bug, a setting the code needs that is missing in production (the error often names it), a script from another site that changed or didn’t load, and code that expects something only a signed-in visitor has.
-
Open the page as step 1 of Check it yourself says, and find the same error in the Console tab. The browser shows which file and line threw it.
-
If the error comes from your own code, fix it there, or roll back to the last release that worked while you do.
-
If it comes from a script on another site, such as an analytics or chat tool, check that script’s status page, update how you load it, or load it in a way that can’t stop the rest of the page.
-
If the error appears only in a private window, the code depends on something a returning or signed-in visitor has. Make the page work without it, or point the monitor at a page that doesn’t need it.
-
Open the page again and check the Console tab has no red error, then follow Confirm DownBad sees the fix.
The page rendered blank
Section titled “The page rendered blank”The page loaded, but there was nothing to read once it settled. After the page loads, DownBad’s browser waits until no file is loading and none has been asked for in half a second, for at most 5 seconds, and then reads it. The reason says which kind of blank it found:
The page's app root (<selector>) is still empty: a single-page app (a site whose content is built by JavaScript in the browser, as React, Vue, Next.js, Nuxt and Svelte sites are) puts its content inside one element, its app root, such as#rootor#__next. That element was still empty, so the app never drew anything.The page shows no visible text: the page has no text a visitor could read at all.
Common causes are a script that failed to load from another site, such as a CDN, which wouldn’t be named in the reason; a request for the page’s data that failed or needs a signed-in visitor; and content that takes longer than the settle wait to appear.
-
Open the page as step 1 of Check it yourself says. In the Network tab, look for scripts or data requests in red, and in the Console tab, look for errors.
-
If a script from another site failed, fix the address or load the script from your own site, where a failure would be named.
-
If the page needs a signed-in visitor to show anything, point the monitor at a page that shows content to anyone, such as your home page or a status page.
-
If the content arrives late, make the page show something as soon as it loads, such as its layout and headings, before the slow data arrives.
-
Open the page again in a private window, check that its content appears, then follow Confirm DownBad sees the fix.
The page logged a console error
Section titled “The page logged a console error”The reason quotes what the page wrote to its console, after Console error:.
DownBad’s rendered checks don’t fail on console errors today: a page can log
errors and still pass, as long as it renders and throws no uncaught error. If
your reason starts this way, the page’s code reported a problem itself, such
as a request for its data that failed.
-
Open the page as step 1 of Check it yourself says, and find the same message in the Console tab, with the file and line that wrote it.
-
Fix what the message names: often a request in the Network tab that failed at the same moment, or a setting the code says is missing.
-
Open the page again and check the message is gone, then follow Confirm DownBad sees the fix.
The page was blocked
Section titled “The page was blocked”The reason reads
The page could not be rendered: <address> was refused: <why the address is refused>.
DownBad’s browser refuses to load anything from a private address, so a check
can never be used to reach a network it shouldn’t see. <why> says what was
wrong with the address, such as
<name> resolves to <address>, which is not a publicly routable address.
This reason means the page itself went to a private address: its own address,
or a redirect the browser followed, whether your server sent it or the page’s
code did after loading. The plain check of the status code passed, so the
first answer came from a public address; the browser then ended up somewhere
private. Files the page asks for from private addresses are refused too, but
don’t fail the check by themselves. They can still leave the page blank or
throw an error. Unless the check’s reason starts
The page could not be rendered:, the monitor’s Overview tab lists them
for its latest check, and a check’s full result on the Activity tab shows
the same for that check, in a note such as
Blocked 2 requests to private addresses: 10.0.0.1, 127.0.0.1. The note names
up to three addresses, then how many more there were.
Common causes are a redirect to an internal address, such as a sign-in page on your office network, and a name that answers with a private address to some of the places that look it up.
-
Open the page in a private window as step 1 of Check it yourself says, and watch the address bar and the Network tab: the page you end up on is the one that was refused.
-
If the page sends visitors to an internal address, change the page or the redirect so that it goes to a public address, or point the monitor at an address that doesn’t redirect there.
-
If the page’s own name answers with a private address, fix its DNS records (the records that turn a name into an address) at your DNS provider, so the name gives only public addresses.
-
DownBad can’t check pages on a private network, and there is no setting that allows it. See DownBad Won’t Check This Target for what DownBad refuses and why.
-
Follow Confirm DownBad sees the fix.
The page could not be rendered
Section titled “The page could not be rendered”The browser couldn’t finish the page. The reason says how:
The page did not finish rendering within <n> ms: the page didn’t finish loading in the time the browser had for it,<n>milliseconds (thousandths of a second). A page has finished loading once the browser has every image, script and stylesheet its HTML names. One slow file holds up the whole page.The page answered too slowly to leave time to render it within the check timeout: the plain check of the status code took so long that there wasn’t time left to open the page in the browser.The page could not be rendered: <what the browser reported>: the browser hit an error loading or reading the page. When it couldn’t load the page, what it reported starts withpage.goto:and usually holds a code that starts withnet::ERR_, such asnet::ERR_TUNNEL_CONNECTION_FAILED(DownBad’s browser couldn’t reach the server). The plain check got an answer, so this is often a redirect the browser followed, or a page that answers a plain request but not a browser’s. A report that starts withpage.evaluate:and saysExecution context was destroyedmeans the page moved to another address, or reloaded itself, while the browser was reading it.
-
Open the page as step 1 of Check it yourself says, reload it with the Network tab open, and look for the slowest files or the request that failed.
-
If one file is slow, such as a large image or a script from another site, make it smaller, load it after the page, or remove it.
-
If the whole page is slow to answer, the server is slow. Fix that first: the plain check of the status code shares the time with the browser.
-
If the browser reported an error, look in the Network tab for a redirect or for the request that failed, and fix that address.
-
If the page moved or reloaded itself while it was read, point the monitor at the address the page ends up at, or stop the page reloading itself soon after it loads.
-
Follow Confirm DownBad sees the fix.
If none of these is the cause, you can turn rendering off while you work: on the monitor’s Settings tab, turn off Include JavaScript rendering and save. The monitor then checks the HTML your server sends, as before. See Check a Page as a Browser Shows It.
Confirm DownBad sees the fix
Section titled “Confirm DownBad sees the fix”-
Fix the cause first. A check that still fails while you work only adds to the time the incident takes to close.
-
Open the incident and press Test Now. DownBad checks again within a few seconds instead of waiting for the next scheduled check.
-
Wait a minute, then reload the incident page, which doesn’t update by itself. The incident closes by itself once enough checks in a row pass. You can’t close an incident by hand.
How many passing checks it takes. While an incident is open, DownBad checks less often after repeated failures. This is called back-off. Each failed check adds one step of back-off, up to 14. Each passing check takes one step away and asks for the next check straight away. When no steps are left, one more passing check closes the incident. So after a steady outage it takes one more passing check than there were failed checks while the incident was open, counting the one that opened it, and never more than 15.
These are the defaults. The monitor’s notification profile can change them for each monitor type under Backoff Config, and its settings are the ones that count: Recovery is how many passing checks in a row, with no back-off left, close the incident (2 by default, counting the check that takes the last step away), and Start after, Rate and Max interval decide when back-off starts and how far it goes. If the profile changes them, the step counts above and the waits below change with them.
How long that takes. After you press Test Now, those passing checks run back to back, a few seconds apart, so the incident usually closes within a minute. It takes longer when checks are slow to finish, such as a page that takes several seconds to load.
If you don’t press Test Now, the first passing check waits for the next scheduled one. With the default settings, from the third failed check on, DownBad waits 5 more minutes for each failure, up to an hour more than the monitor’s usual interval:
| Monitor checks every | After 1 or 2 failed checks | After 3 | After 6 | After 14 or more |
|---|---|---|---|---|
| 1 minute | 1 minute | 6 minutes | 21 minutes | 61 minutes |
| 5 minutes | 5 minutes | 10 minutes | 25 minutes | 65 minutes |
| 1 hour | 1 hour | 1 hour 5 minutes | 1 hour 20 minutes | 2 hours |
| 1 day | 1 day | 1 day 5 minutes | 1 day 20 minutes | 1 day 1 hour |
Still stuck
Section titled “Still stuck”Before you ask for help, collect:
- the link to the incident, and the reason it shows, word for word
- what the Console and Network tabs showed in a private window, and when you looked
- the output of the command in Check it yourself, if the reason names a file
- the name of any service in front of your site, such as a CDN
Then send all of it to us through Contact Us.