Part 07 / Stage 2
Streaming and Suspense
Goal: Learn how the App Router sends a page before every part of it is ready — a static shell paints first, then slow sections stream in behind
<Suspense>boundaries you place on purpose. Build a delivery-partner ops console, Saathi Ops Console, with a live "delayed orders" widget that is genuinely slow, and watch the HTML actually arrive in chunks, not just read about it. Time: ~6 h · Level: 🟡 finished Part 6 (the Server/Client boundary); new to streaming Verified against: Next.js 16.4.6, this course's harness (cacheComponents: true,partialPrefetching: true— Part 1, section 8)
What you will learn
- What "streaming" means at the HTTP level: chunked responses, not a single buffered document
- The static shell: everything that renders before any async work resolves, sent immediately
<Suspense>: wrapping a slow server component so its fallback ships in the shell and the real content swaps in later, in the same responseloading.tsx: the page-level shortcut that wraps a whole route segment in a Suspense boundary for you, with no import- Where to place a boundary — close to the slow data, not high in the tree — and what you lose if you place it wrong
- How to actually watch chunks arrive, and why
curlalone can lie to you about it - What happens when a component streaming behind a boundary throws
Topics in this part
Practice
Every exercise below adds a throwaway route under harness/app/ops/ (never inside harness/app/ops/page.tsx or harness/app/ops/orders/ themselves), runs a real command against it, and then removes what it added — Part 7's README ends with exactly /ops and /ops/orders in the harness, and Part 8 starts from that same state. Copy the exact commands you ran and their real output into your own notes; do not type output from memory.
Exercise 1: A third sibling widget
Scenario: Saathi Ops wants a "today's top partner" widget next to the other two.
What to do: Add a third async component and its own <Suspense> boundary to a copy of the dashboard at app/ops/third-widget-demo/page.tsx, reusing getNearbyPartnerCount with a different city. Run next build and confirm the route is ◐. Then observe with examples/05-stream-observer.mjs that the new section's fallback ships in the first chunk alongside the <h1>.
Sample output (run for real against this course's harness):
$ npm run build
...
├ ◐ /ops/third-widget-demo
💡 Hint: This is section 2's pattern copy-pasted a third time — the point is confirming for yourself that nothing about adding a third sibling boundary changes how the first two behave.
Exercise 2: Skeleton dimensions and CLS
Scenario: The plain-text fallback for LiveDelayedOrders (<p id="orders-fallback">Checking delayed orders…</p>) is a single short line; the real content is a multi-row <ul>. Fix the mismatch.
What to do: In a copy of the dashboard, replace that fallback with three skeleton <li> elements sized like real rows (similar to app/ops/orders/loading.tsx's bars). Run the dev server and watch the Suspense swap in the browser — the page should not visibly jump.
Sample output (run for real against this course's harness — the final HTML once resolved, for comparison):
$ curl -s http://localhost:PORT/ops | grep -o '<ul id="delayed-orders">.*</ul>'
<ul id="delayed-orders"><li>ORD-4821 — Ravi Kumar (Bengaluru), ETA 18 min</li>...</ul>
💡 Hint: Section 4's "skeleton dimensions matter" callout is the whole exercise — match height and row count, not just presence of something.
Exercise 3: Swap loading.tsx for inline <Suspense>
Scenario: Confirm for yourself that /ops/orders behaves the same either way, and can state why you'd still pick one over the other.
What to do: In a copy at app/ops/granular-demo/page.tsx, delete the loading.tsx approach and instead wrap the list in an explicit <Suspense fallback={<p id="granular-fallback">Loading…</p>}>. Run next build and confirm the route table symbol is unchanged.
Sample output (run for real against this course's harness):
$ npm run build
...
├ ◐ /ops/granular-demo
💡 Hint: The symbol doesn't change — section 5's table is about navigation/prefetch behavior and setup cost, not about what a next build route table can show you. State the trade-off in your own words before checking the README.
Exercise 4: Measure the gap between two sibling boundaries
Scenario: Prove the ~700ms gap between NearbyPartners (500ms) and LiveDelayedOrders (1200ms) the README quotes is real, not a one-off.
What to do: Run examples/05-stream-observer.mjs against /ops three times in a row and record the id="nearby-partners" and id="delayed-orders" arrival timestamps each time.
Sample output (run for real against this course's harness, one run — (varies) run to run):
$ node examples/05-stream-observer.mjs http://localhost:PORT/ops
...
id="nearby-partners" arrived at: +547ms
id="delayed-orders" arrived at: +1245ms
💡 Hint: The absolute numbers move a little each run; the ~700ms gap between them (1200ms − 500ms, the difference between the two wait() calls) should stay roughly constant. That stability is the actual proof, not any single run's numbers.
Exercise 5: Trigger the blocking-prerender error on purpose
Scenario: Section 3 showed the error once. Reproduce it yourself, on the actual dashboard, without copying the README's text.
What to do: In a scratch copy of app/ops/page.tsx, remove the <Suspense> wrapper around LiveDelayedOrders so it's called directly. Run next build and copy the real error. Then restore the wrapper and confirm the build is green again.
Sample output (run for real against this course's harness):
$ npm run build
...
Error: Route "/ops": Next.js encountered uncached or runtime data during prerendering.
`fetch(...)`, `cookies()`, `headers()`, `params`, `searchParams`, or `connection()` accessed outside of `<Suspense>` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
💡 Hint: This is the exact same error family Part 2 section 4 triggered for a missing generateStaticParams — Cache Components treats "uncached async work with no Suspense boundary" as one error class, regardless of which API caused it.
Exercise 6: Nested Suspense for a progressive reveal
Scenario: Show the delayed-orders list first, then stream in extra detail for the first order a moment later — two levels of "loading," not one.
What to do: In a scratch route app/ops/nested-demo/page.tsx, wrap LiveDelayedOrders-style content in an outer <Suspense>, and inside that component's returned JSX, add a second, inner <Suspense> around a new component that await wait(800)s before rendering <p id="order-detail">. Measure both arrival times with the stream observer.
Sample output (run for real against this course's harness):
$ node -e "...fetch and read loop against /ops/nested-demo..."
order-list arrived at: 1211 ms
order-detail arrived at: 2008 ms
💡 Hint: 2008 ≈ 1200 + 800 — the inner boundary's delay stacks on top of the outer one, because the inner component doesn't start its own wait() until the outer one has already resolved and rendered it. This is the installed package's own "nested boundaries for progressive detail" pattern, measured rather than assumed.
Exercise 7: Confirm what a mid-stream error actually sends
Scenario: Section 7 described the production behavior. Reproduce it and inspect the raw bytes yourself, rather than trusting the summary.
What to do: Build the Flaky/error.tsx pair from section 7 in a scratch route, run next build && next start, and curl -s the route into a file. Search that file for your error's exact message text, and separately for the string digest.
Sample output (run for real against this course's harness):
$ curl -s http://localhost:PORT/ops/error-demo -o /tmp/error-demo.html
$ grep -c "Upstream ops feed timed out" /tmp/error-demo.html
0
$ grep -o 'digest\\":\\"[0-9]*\\"' /tmp/error-demo.html
digest\":\"961092803\"
💡 Hint: The number after digest is (varies) — it is a hash of the error, not a fixed id. The actual proof is structural: the real message is never present in the bytes the server sent, only this hash. error.tsx's own <p> text won't be in the server HTML either (it is a Client Component, rendered after hydration) — that is a separate, additional fact from the digest one, not a contradiction.
Exercise 8 (stretch): Prove curl really can't show you progressive chunks here
Scenario: Section 6 asserts curl -N can't demonstrate streaming for this particular response shape. Don't take that on faith.
What to do: Count the newline characters in a full /ops response, then run curl -N against the same route while timing how long it takes for curl to print anything to your terminal.
Sample output (run for real against this course's harness):
$ curl -s http://localhost:PORT/ops | python3 -c "import sys; print(sys.stdin.read().count(chr(10)))"
1
$ time curl -s -N -o /dev/null http://localhost:PORT/ops
curl -s -N -o /dev/null http://localhost:PORT/ops 0.00s user 0.00s system 0% cpu 1.247 total
💡 Hint: One newline in the whole body means curl has essentially nothing to flush early on, even with -N — the real time above (over a second) proves curl received the full response slowly, but it couldn't show you that progressively happening without examples/05-stream-observer.mjs's byte-level reads.
Show the solutions for Part 7 (8 files)
solutions/ex01.tsx
// Solution to Exercise 1. Drop in as harness/app/ops/third-widget-demo/page.tsx,
// then: npm run build (check the route table for /ops/third-widget-demo),
// then node examples/05-stream-observer.mjs http://localhost:PORT/ops/third-widget-demo.
// Delete the app/ops/third-widget-demo/ folder afterward.
import { Suspense } from "react";
import { getNearbyPartnerCount, getTodaysSummary } from "../lib/delay";
async function TopPartner() {
const count = await getNearbyPartnerCount("Chennai"); // 500ms, same helper, different city
return (
<p id="top-partner">
{count > 20 ? "Arjun Nair is leading today in Chennai" : "No clear leader yet in Chennai"}
</p>
);
}
export default function ThirdWidgetDemoPage() {
const summary = getTodaysSummary();
return (
<main style={{ fontFamily: "system-ui", padding: "2rem", maxWidth: 560 }}>
<h1>Saathi Ops Console (with a third widget)</h1>
<p>
Deliveries today: {summary.deliveries} · Avg delivery time: {summary.avgMinutes} min
</p>
<h2>Top partner today</h2>
<Suspense fallback={<p id="top-partner-fallback">Checking today's leaderboard…</p>}>
<TopPartner />
</Suspense>
</main>
);
}
// Build output, run for real against this course's harness:
//
// $ npm run build
// ...
// ├ ◐ /ops/third-widget-demo
//
// Stream observer, run for real:
//
// $ node examples/05-stream-observer.mjs http://localhost:PORT/ops/third-widget-demo
// chunk 1 at +Xms (... bytes) <- contains <h1> and both fallback texts
// ...
// id="top-partner-fallback" is not one of this script's WATCHED_IDS by
// default — add it to the list if you want its own timestamp line; the
// chunk-by-chunk log already shows the swap happening around +500ms either way.
solutions/ex02.md
# Solution to Exercise 2: skeleton dimensions and CLS
Replace the plain-text fallback with skeleton rows shaped like the real list, in a scratch copy of the dashboard:
```tsx
<Suspense
fallback={
<ul id="orders-fallback-skeleton" aria-hidden>
{[0, 1, 2].map((row) => (
<li
key={row}
style={{ height: "1.1rem", width: "100%", background: "#e5e7eb", marginBottom: "0.5rem", borderRadius: 4, listStyle: "none" }}
/>
))}
</ul>
}
>
<LiveDelayedOrders />
</Suspense>
```
The real content this stands in for, confirmed against this course's harness:
```text
$ curl -s http://localhost:PORT/ops | grep -o '<ul id="delayed-orders">.*</ul>'
<ul id="delayed-orders"><li>ORD-4821 — Ravi Kumar (Bengaluru), ETA 18 min</li><li>ORD-4855 — Sana Sheikh (Hyderabad), ETA 25 min</li><li>ORD-4902 — Arjun Nair (Chennai), ETA 12 min</li></ul>
```
Three real rows, so three skeleton rows is the right match — not one line, not five. The original `<p id="orders-fallback">Checking delayed orders…</p>` fallback in the README's own `/ops` page is a single short line standing in for a three-row list; swapping to this skeleton (or simply three plain `<li>` placeholders) removes the layout jump the original version causes, per the README's own section 4 callout.
The underlying rule, restated: a fallback's job isn't just "show something," it's "reserve the same space the real content will occupy." Height and row count are what matter for CLS — exact colors or wording of the skeleton don't.
solutions/ex03.tsx
// Solution to Exercise 3. Drop in as harness/app/ops/granular-demo/page.tsx
// — no loading.tsx in this folder at all, unlike app/ops/orders/.
// Then: npm run build. Delete app/ops/granular-demo/ afterward.
import { Suspense } from "react";
import { getDelayedOrders } from "../lib/delay";
async function AllDelayedOrders() {
const orders = await getDelayedOrders();
return (
<ul id="all-delayed-orders">
{orders.map((order) => (
<li key={order.id}>{order.id}</li>
))}
</ul>
);
}
export default function GranularDemoPage() {
return (
<main style={{ fontFamily: "system-ui", padding: "2rem", maxWidth: 560 }}>
<h1>All delayed orders</h1>
<Suspense fallback={<p id="granular-fallback">Loading…</p>}>
<AllDelayedOrders />
</Suspense>
</main>
);
}
// Build output, run for real against this course's harness:
//
// $ npm run build
// ...
// ├ ◐ /ops/granular-demo
//
// Same symbol as /ops/orders (which uses loading.tsx instead). The
// difference the README's section 5 table names is navigation behavior,
// not what next build can show you: loading.tsx's fallback is prefetched
// as an "instant loading state" the moment a <Link> to that route is
// hovered/visible; a fallback written inline like this one is not
// prefetched the same way by default. For a page with nothing worth
// showing without its data (this one), loading.tsx is strictly less
// code for the same result — the inline version here exists only to
// prove the build symbol doesn't change, which is this exercise's point.
solutions/ex04.md
# Solution to Exercise 4: measuring the gap between two sibling boundaries
Run the stream observer against `/ops` three times in a row, no code changes needed — this exercise is about observation, not building something new.
Three real runs against this course's harness (`next start`, port varies):
```text
$ node examples/05-stream-observer.mjs http://localhost:PORT/ops
...
id="nearby-partners" arrived at: +524ms
id="delayed-orders" arrived at: +1222ms
# gap: 698ms
$ node examples/05-stream-observer.mjs http://localhost:PORT/ops
...
id="nearby-partners" arrived at: +524ms
id="delayed-orders" arrived at: +1228ms
# gap: 704ms
$ node examples/05-stream-observer.mjs http://localhost:PORT/ops
...
id="nearby-partners" arrived at: +526ms
id="delayed-orders" arrived at: +1224ms
# gap: 698ms
```
The absolute arrival times drift by only a few milliseconds run to run — ordinary scheduling noise, `(varies)`. The **gap** between the two does not drift: it sits right at ~700ms every time, which is exactly `1200ms - 500ms`, the difference between `getDelayedOrders`'s and `getNearbyPartnerCount`'s `wait()` calls in `app/ops/lib/delay.ts`. That stability — not any single absolute timestamp — is what actually proves the two boundaries are resolving independently, each on its own clock, rather than one blocking the other or both being coincidentally close.
solutions/ex05.md
# Solution to Exercise 5: trigger the blocking-prerender error on purpose
In a scratch copy of `app/ops/page.tsx`, remove the `<Suspense>` wrapper around `LiveDelayedOrders`:
```tsx
<h2>Live delayed orders</h2>
<LiveDelayedOrders />
```
Real error, run against this course's harness:
```text
$ npm run build
...
Error: Route "/ops": Next.js encountered uncached or runtime data during prerendering.
`fetch(...)`, `cookies()`, `headers()`, `params`, `searchParams`, or `connection()` accessed outside of `<Suspense>` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
Ways to fix this:
- [stream] Provide a placeholder with `<Suspense fallback={...}>` around the data access
- [cache] For uncached data (`fetch`, database calls): cache the access with `"use cache"` (does not apply to `connection()`)
- [block] Set `export const instant = false` to allow a blocking route
Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic
at main (<anonymous>)
at body (<anonymous>)
at html (<anonymous>)
Export encountered an error on /ops/page: /ops, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
```
Restore the `<Suspense>` wrapper and confirm the build is green again:
```text
$ npm run build
...
├ ◐ /ops
```
This is the same error class Part 2 section 4 triggered by deleting `generateStaticParams` from a dynamic route — `cacheComponents: true` doesn't care *which* uncached/runtime API caused the problem (`fetch`, `cookies()`, `headers()`, `params`, `searchParams`, `connection()`, or here, an un-cached async component call); any of them outside a `<Suspense>` boundary blocks prerendering and fails the build rather than silently falling back to slower, fully dynamic rendering.
solutions/ex06.tsx
// Solution to Exercise 6. Drop in as harness/app/ops/nested-demo/page.tsx.
// Then: npm run build, npm run start -p PORT, and read the stream with a
// script like examples/05-stream-observer.mjs (watching for
// id="order-list" and id="order-detail" instead of the /ops ids).
// Delete app/ops/nested-demo/ afterward.
import { Suspense } from "react";
import { getDelayedOrders, wait } from "../lib/delay";
async function OrderList() {
const orders = await getDelayedOrders(); // 1200ms
return (
<div>
<ul id="order-list">
{orders.map((order) => (
<li key={order.id}>{order.id}</li>
))}
</ul>
<Suspense fallback={<p id="detail-fallback">Loading order detail…</p>}>
<OrderDetail id={orders[0].id} />
</Suspense>
</div>
);
}
async function OrderDetail({ id }: { id: string }) {
await wait(800); // additional 800ms, starts only after OrderList above resolved
return <p id="order-detail">Detail for {id}: picked up 9 minutes ago.</p>;
}
export default function NestedDemoPage() {
return (
<main style={{ fontFamily: "system-ui", padding: "2rem", maxWidth: 560 }}>
<h1>Nested streaming demo</h1>
<Suspense fallback={<p id="list-fallback">Loading order list…</p>}>
<OrderList />
</Suspense>
</main>
);
}
// Build output, run for real against this course's harness:
//
// $ npm run build
// ...
// ├ ◐ /ops/nested-demo
//
// Stream timing, run for real (a small Node reader, same shape as
// examples/05-stream-observer.mjs, watching for id="order-list" and
// id="order-detail"):
//
// order-list arrived at: 1211 ms
// order-detail arrived at: 2008 ms
//
// 2008 ≈ 1200 + 800: the inner boundary's 800ms delay only starts once
// OrderList has already resolved and rendered <OrderDetail>, because
// OrderDetail's own wait() call doesn't begin executing until React
// reaches that line — nested Suspense boundaries reveal progressively
// deeper detail one resolution at a time, they do not run in parallel
// with their parent.
solutions/ex07.md
# Solution to Exercise 7: what a mid-stream error actually sends
Build the section 7 pair in a scratch route, `app/ops/error-demo/`:
```tsx
// page.tsx
import { Suspense, type ReactNode } from "react";
import { wait } from "../lib/delay";
async function Flaky(): Promise<ReactNode> {
await wait(300);
throw new Error("Upstream ops feed timed out");
}
export default function ErrorDemoPage() {
return (
<main style={{ fontFamily: "system-ui", padding: "2rem", maxWidth: 560 }}>
<h1>Ops error demo</h1>
<p id="still-here">This paragraph should survive even if the widget below throws.</p>
<Suspense fallback={<p>Loading flaky widget…</p>}>
<Flaky />
</Suspense>
</main>
);
}
```
```tsx
// error.tsx
"use client";
export default function Error({ error }: { error: Error & { digest?: string } }) {
return <p id="error-ui">Could not load this widget: {error.message}</p>;
}
```
Build, start in production mode, and capture the raw response:
```text
$ npm run build && npm run start -p PORT
$ curl -s http://localhost:PORT/ops/error-demo -o /tmp/error-demo.html
$ grep -c "Upstream ops feed timed out" /tmp/error-demo.html
0
$ grep -o 'digest\\":\\"[0-9]*\\"' /tmp/error-demo.html
digest\":\"961092803\"
$ grep -c "still-here" /tmp/error-demo.html
1
```
Three real facts from this one file, not three separate guesses:
1. **The status is still `200`.** Confirmed with `curl -sD -`: `HTTP/1.1 200 OK`. The failure happened after the shell (and its `200`) had already streamed.
2. **The real error message never leaves the server.** `"Upstream ops feed timed out"` has zero matches in the response bytes. In its place, the RSC payload carries only `digest\":\"961092803\"` (the number itself is `(varies)` — it's a hash, not a stable id) — this is the installed package's documented behavior for a production build: full error details stay in server logs, only a digest crosses to the client.
3. **`#error-ui`'s own text is not in the server HTML either**, for an unrelated reason: `error.tsx` must be a Client Component, so its JSX only renders in the browser after hydration, using the digest (and, in dev mode only, the real message) the server sent. `curl`/server HTML can never show you that paragraph's text — only a real or headless browser can.
`#still-here` is present exactly once, confirming the rest of the page was untouched — only the one Suspense boundary that threw was replaced.
solutions/ex08.md
# Solution to Exercise 8 (stretch): proving `curl` can't show progressive chunks here
Count the newlines in a full `/ops` response:
```text
$ curl -s http://localhost:PORT/ops | python3 -c "import sys; print(sys.stdin.read().count(chr(10)))"
1
```
One newline in a response that takes over a second to fully arrive. Time `curl -N` (no-buffer) against the same route:
```text
$ time curl -s -N -o /dev/null http://localhost:PORT/ops
curl -s -N -o /dev/null http://localhost:PORT/ops 0.00s user 0.00s system 0% cpu 1.247 total
```
`real` time (the only column that matters here, `~1.25s`) confirms curl really did wait for the slow sections — it didn't just grab a cached instant response. But `-N` alone, piped to a terminal reader that prints on newlines, would show nothing until essentially the very end, because the response has nowhere near enough newlines to trigger an early flush. This matches the installed package's own streaming guide, word for word: *"curl still relies on newline characters to flush lines to the terminal. A stream that sends chunks without newlines may appear to stall even with `-N`."*
Compare the same request read with a byte-level reader instead of relying on line buffering:
```text
$ node examples/05-stream-observer.mjs http://localhost:PORT/ops
chunk 1 at +41ms (1829 bytes)
...
chunk 6 at +1245ms (424 bytes)
chunk 7 at +1245ms (492 bytes)
chunk 8 at +1246ms (14 bytes)
```
Same endpoint, same ~1.25s total duration either way — but the Node script shows you the eight individual arrivals as they happen, because it reads `res.body.getReader()` directly instead of waiting on line breaks. `curl`'s total time proves streaming *happened* (the request wasn't instant); it cannot, on its own, show you *when* each piece arrived.
Common mistakes
| Mistake | Why it is wrong | Fix |
|---|---|---|
Wrapping a synchronous read in <Suspense> |
getTodaysSummary() never awaits anything, so it can't suspend — the boundary would do nothing, reproduced in section 2 |
Only wrap components that actually await something uncached |
One async function doing two unrelated slow reads |
A single component can't stream two different sections independently — both finish together, at the slower of the two | Split into two components, each with its own <Suspense> boundary, as section 2 does |
| An uncached async read with no boundary at all | Real build failure under cacheComponents: true, reproduced in section 3: Next.js encountered uncached or runtime data during prerendering |
Wrap it in <Suspense> (or cache it — Stage 3), per the error's own [stream]/[cache] options |
A full-page loading.tsx on a page with real static content above the slow part |
Throws away content the shell could have shown instantly — section 5's whole point | Use explicit <Suspense> close to the slow section instead |
| A skeleton fallback shaped nothing like the real content | Visible layout shift the instant the swap happens, section 4's "skeleton dimensions matter" | Size skeleton bars to approximate the real content's height |
Trusting curl -N alone to prove streaming works |
curl only flushes on newlines; an HTML response with one newline looks identical whether it streamed or not, confirmed in section 6 |
Read the response as a byte stream and timestamp chunks, or check Chrome DevTools' Timing tab |
Expecting a mid-stream error to produce a non-200 status |
The status was already sent with the first chunk, confirmed in section 7 | Run any check that must affect the status code before the Suspense boundary starts streaming |
Quick recap
- Streaming sends a static shell immediately, then streams each
<Suspense>boundary's resolved content into the same response as it finishes — proven with real chunk timestamps, not assumed. - Separate async functions, separate boundaries: that's what lets sibling sections resolve (and stream) independently, in whatever order their data actually finishes.
loading.tsxauto-wraps a whole page in Suspense with no import; explicit<Suspense>gives per-component control and is the better default once a page has any real static content worth shipping immediately.cacheComponents: trueturns "forgot a boundary" into a build failure, not a slow page — the same family of error Part 2 first ran into for dynamic routes.curlcan't be trusted alone to prove streaming — it only flushes on newlines; a byte-stream reader with timestamps is what actually proves it.- A mid-stream error replaces only its own boundary's content, the response stays
200, and production builds send adigestinstead of the real error message.
Checklist
- I built a page with two sibling
<Suspense>boundaries around two different-speed async components and watched them resolve out of JSX order. - I removed a boundary on purpose and reproduced the real
cacheComponentsbuild failure. - I built a route with
loading.tsxinstead of inline<Suspense>and can say in one sentence when each is the better choice. - I proved
curlalone can't show progressive streaming, then used a byte-stream reader that could. - I made a Suspense-wrapped component throw and confirmed the rest of the page survived, the status stayed
200, and the real error message was not sent to the client.