Five ways to fail without an error message
In July 2026, this site served a blank page on every route. Not an error page. A blank page, with a 200 status code, from a server whose logs showed nothing wrong, on a stack whose move to Python 3 had been declared complete nine months earlier.
The repair was one commit, and it fixed five separate bugs:
- The frontend started the app with Svelte 4's
new App(), which Svelte 5 removed, so the app never mounted. - The server's single-page-app fallback wrapped a coroutine in
try/except, so the 404 was raised on await, outside the handler. The fallback had been dead code from the day it was written. - The
/data/route pointed at a directory that didn't exist. - An empty
COOKIE_SECRETpassed the production guard, because the check compared against the literal dev default instead of asking whether a real value was there. - The systemd unit passed
--port 8080, which Tornado's option parser rejects. It needs--port=8080.
Not one of the five produced an error message. That's the whole subject. What follows is what each silence was made of, why every one of them looked like working code, and what we kept from them.
One: the mount that never happened
In January 2026, Dependabot flagged five security vulnerabilities in the frontend's dependencies. The upgrade that cleared them (Svelte 3.59 to 5.0, Vite 4 to 6) came with a reassuring line:
Note: Svelte 5 is backward compatible with most Svelte 4 code.
The blank page lived in the word most. The app's entry point still said:
const app = new App({
target: document.getElementById('app'),
})
new App() is Svelte 4's way to mount an app, and Svelte 5 removed it.
Nothing about the failure reached the server, because the server did its
half perfectly. The page shell came back 200, the bundle came back 200,
the bundle loaded, the bundle ran. The app just never mounted, and the
<div id="app"> in the shell stayed empty forever.
The only witness was a browser console nobody had open. And a console isn't a monitor anyway. It only speaks to someone who already suspects.
The fix is the Svelte 5 idiom, one line:
const app = mount(App, {
target: document.getElementById('app'),
})
181 days passed between the upgrade and the repair. Every visit in between, every share, every crawl, every link preview, got the same beautiful nothing.
Two: the fallback that couldn't catch
A single-page app does its routing in the browser, so the server has to
answer a deep link like /hello with the app's shell page and let the
client take it from there. Our fallback for that went in the same day as
the Svelte upgrade, as a fix for client-side routing that wasn't working.
The bug was born in a fix for routing. The handler's first version:
def get(self, path, include_body=True):
try:
return super().get(path, include_body)
except HTTPError as e:
if e.status_code == 404 and ...:
return super().get('index.html', include_body)
raise
Read it as pseudocode and it's correct: try to serve the file, and on a
404, serve the shell instead. Read it as Python running under Tornado
and the try guards nothing. super().get() is a coroutine. Calling
it returns a coroutine object and raises nothing. The HTTPError fires
later, when Tornado awaits that coroutine, up in the framework and well
out of the except's reach.
So the fallback was dead code from the day it was written, and no test failed. The code was syntactically perfect, type-correct, and never did its one job.
Stacked on top of bug one, the result was this: / served the shell
(serving the default file raises nothing), and every deep link (/hello,
/kanban, anything a client-side route owns) got a plain 404. The site
was unreachable two ways at once, and the logs reported a clean bill of
health.
The fix makes the handler honest about being async:
async def get(self, path, include_body=True):
try:
await super().get(path, include_body)
except HTTPError as e:
...
await inside the try is the whole difference. An exception raised on
await can only be caught by something that was there for the await.
Three: the route to nowhere
In January 2023, while tinkering with some old demos, we added this route:
(r"^/data/(.*)$", tornado.web.StaticFileHandler, {'path': './static/data/'}),
./static/data/ didn't exist. For the next 33 months nothing
fetched /data/, so being wrong cost exactly nothing: a landmine with no
foot traffic. Then in October 2025 the D3 chart pages shipped, started
fetching /data/, and got 404s. They got HTML where data should be, and
rendered without it while looking, by every visible signal, fine.
The access log had those 404s the whole time. It's worth saying plainly: the access log is where 404s go to be ignored. A 404 on a route you think is decorative reads as noise. A 404 on a route you think is working reads as someone else's problem. Nothing about a 404 in an access log escalates, and this bug never produced anything louder.
1,296 days from wrong to fixed. It predates the Python 3 migration by almost three years. A migration is a natural time to notice things, and this one had nothing to notice, because the bug never emitted a signal. It looked like a config line. It was a config line. That was the problem.
Four: the guard that guarded the wrong value
The Python 3 migration, done by an automated coding bot in July 2025, added a production guard for the cookie secret and listed it, under a green checkmark, as a security improvement. Here's the check it added:
cookie_secret = os.environ.get('COOKIE_SECRET', 'changemeplz-dev-only')
if cookie_secret == 'changemeplz-dev-only' and not debug:
raise ValueError("COOKIE_SECRET environment variable must be set for production")
The intent is right and the mechanics are wrong, and the gap between
them is one of the oldest holes in configuration handling.
os.environ.get's default only applies when the key is absent. A
.env file that says
COOKIE_SECRET=
has a present key with an empty value. That's a placeholder waiting
for a value, which is the ordinary state of a fresh checkout. get
returns '', the comparison against the literal default fails, the
guard stands aside, and production runs, signing cookies with the empty
string.
The guard asked "is this the literal dev default?" when it needed to ask "is there a real value here?" Those are different questions, and the second is the one that matters.
The fix, .strip() or 'changemeplz-dev-only', treats blank as unset,
and it turned out to be the most durable line in the repair. The same
day, our settings code moved into one small helper that treats blank as
unset for every setting, and a regression test now sets the secret
to an empty string and checks that the guard fires.
380 days passed between the guard and the repair. The bug is the reason the convention exists.
Five: the flag that needed an equals sign
In March 2026 we added a proper deployment setup, a systemd unit and an nginx vhost, and committed the unit with:
ExecStart=/opt/pearachute/venv/bin/python /opt/pearachute/pearachute.py --port 8080
Tornado's option parser splits each argument on =. If there's no =
and the option isn't a boolean, Tornado's options module raises this
before the process binds anything:
raise Error("Option %r requires a value" % name)
The unit as committed could never have started the app. This is the least silent of the five. It fails loudly, at startup, every time. But loudly where? In a journal, on a server, wrapped in the two settings that turn a crash into a rhythm:
Restart=always
RestartSec=10
A service that crash-loops every ten seconds doesn't look broken from the outside. It looks like a service that's always about to start. And the journal lives on the machine you only open when something is already wrong. 130 days: the shortest-lived of the five, and still more than four months.
The fix is one character: --port=8080. Our project docs now spell out
the rule, because the next person to write a unit file will reach for
the space-separated form, the way every tutorial does.
What the silences were made of
Five bugs, five different mechanisms, one shape. Sorted by how they were silent rather than where they sat:
- Silence by layer. Each bug had exactly one witness, and each
witness lived somewhere nobody was looking: a browser console, a dead
exceptblock, an access log, a.envplaceholder, a remote journal. The one log a human actually reads, the server's, was clean throughout, because at every one of these moments the server genuinely did its job. - Silence by success. Every layer reported success. 200 OK. A bundle that loads and runs. A guard that passes. A deploy that goes green. Success at every layer except the one where the visitor is. Across layers, failure and success aren't opposites. They're independent.
- Silence by default. "Unset" is one word for two states: the key
absent, and the key empty.
os.environ.get's default covers only the first. Half the.envfiles on fresh checkouts carryKEY=placeholders, which is the second. - Silence by loop.
Restart=alwaysturns "broken" into "starting", indefinitely, ten seconds at a time.
None of these are exotic. Every one of them is a normal Tuesday in a codebase that's passing its checks.
How long each one lived
Measured from the day each bug went in to the day of the fix, from the git history:
The chart's argument is the right edge. All five bars end on the same day, not because the bugs were discovered together, but because one person finally looked at the site the way a visitor does. The left edges tell the other half. The oldest bug predates the migration by almost three years, and the one that blanked every route came in with the upgrade that was meant to bring the stack up to date.
What actually caught them
Not a monitor. Not an alert. A person opened the page. Every automated check the repo had (and it had some) was measuring the wrong layer, and every one of them stayed green for the whole life of all five bugs.
The repair left tests behind, and they're worth more than the repair:
- A test fetches a client-side route and asserts the shell comes back. If the fallback dies again, it fails.
- A test fetches a real dataset under
/data/and asserts a 200. The route to nowhere is watched now. - A test asserts that a missing asset gets a 404 rather than quietly returning HTML. That's the inverse tripwire: the fallback may only fall back where it's supposed to.
- A test sets
COOKIE_SECRET=''and asserts the guard raises. - A test runs the real built bundle in jsdom, a simulated browser that
runs in Node, and asserts that
<div id="app">gains children. That's the mount bug's witness, because a Python test suite can't see a blank page and something has to.
That last one deserves some honesty. jsdom isn't a browser: it has no
layout, no paint and no real network. What it proves is narrow and
exactly right. The bundle loads, runs, and mounts something into the div
the shell ships. We validated it the way any tripwire should be
validated, by putting the bug back: new App() back in the entry point,
rebuild, and the suite fails with Svelte's own effect_orphan error.
That's the same error a browser console had been quietly carrying for
six months. What it can't prove is that the page looks right. Pixels
still have no witness, and a real browser in CI is the tool for that if
it's ever needed.
Blank is unset
The repair, once found, was almost nothing: one character for the port
flag, one function call for the mount, one await for the fallback.
Knowing where to put them was the entire cost.
Each of the five was a success story told at every layer but one. The only instrument that found the lying layer was a person visiting the site like a visitor, still the most under-deployed monitoring tool there is.
The durable output of the whole incident is one convention, now in our settings code and in the project's docs: blank is unset. Most of what a silent failure leaves behind is a fix. The valuable part is the rule it teaches.
Three notes on failures whose only signature is silence:
- Five ways to fail without an error message (this note): five bugs, one fix, and not one error message between them.
- The gitignore that ate a source file: the silence that was manufactured. The tool that would warn you is the one told not to look.
- The carriage return that breaks the deploy, not the diff: the invisible byte, harmless or fatal depending on who reads it.