TentyAll guides

Page errors

The red lines in the browser console that your visitors see and never read. Tenty reads them on your key pages after every scan, so you hear about a broken button before a customer does.

What it is

While Tenty opens your key pages in Chromium, it listens to the page as it loads. Two things go on the list: scripts that throw an error, and requests for files or data that fail, either with an answer of 400 or higher or with no answer at all.

Why it matters

A page can render, pass the key pages check and still be half broken. A script that throws on load leaves the button it was wiring dead. A data call that answers 500 leaves the price table empty. The page looks fine in a screenshot until someone clicks.

How Tenty checks it

Page errors run with key pages, on every scan of a verified domain: the daily scan, a scan you start, and the round after each deploy. Each page keeps up to 10 script errors and 10 failed requests.

  • Script error: a script on the page throws while the page loads. Medium.
  • Failed request: the page asks for a file or data and gets 400 or higher, or the request fails. Medium on your own host, low on another host.

Each error is one finding with its own fingerprint. An error that stays from scan to scan stays one finding, and an error a deploy adds is a new finding, so alerts go out for what changed. Hashed build names and numbers in a message or an address are ignored, so a fresh build keeps the same fingerprint.

A page that fails to load or that your robots.txt closes is left to the key pages check.

How to fix it

For a script error, open the page with the browser console on: the stack of the error names the file and line that threw. For a failed request, open the network tab, find the request and fix the route on the server or the address the page asks for.

How to reproduce

curl -sS -o /dev/null -w '%{http_code}\n' 'https://YOUR-APP/the-failed-request'

This shows the answer of a failed request. A script error needs a browser: open the page in a private window with the console on.