Dev.to WebDev 🛠 Dev 👁 0 📖 4 min read

13 of 23 stories wouldn't open. We audited every article link in our news app.

A user tapped through our news stories and half of them wouldn't load — or play audio. The fix wasn't a bigger retry button. It was admitting some stories can never load, and saying so honestly. He sent a video at 12:44

A user tapped through our news stories and half of them wouldn't load — or play audio. The fix wasn't a bigger retry button. It was admitting some stories can never load, and saying so honestly.

He sent a video at 12:44 in the morning, tapping through stories in StarBrook News. "Quite a few don't open... Or play audio. Look closely."

He was right. So I audited every single one — all 23 unique story URLs across the Morning and Evening editions — through the same extraction service the read page uses. Thirteen of them did not show the full story.

The pattern was not random. It was per-publisher:

  • Yahoo Sports: 0 of 9. Five came back too short to be a story, four unavailable.
  • Associated Press: 0 of 1 — blocked.
  • KFOR Oklahoma City: 0 of 2 — blocked.
  • Bloomberg Markets: 0 of 1 — unavailable.

Meanwhile BBC News, CNBC, RELEVANT, The Guardian, The New York Times, The Verge, TheGrio, Vogue (2 of 2), and WIRED all extracted fine. The failures were permanent, not flaky: Yahoo, AP, KFOR, and Bloomberg either block the server-side fetch outright or return too little text to be a story. Retrying them never works. It never will.

And yet the read page showed every failure the same way: a spinner, then "Try loading the full story again." So he tapped retry. And retry. And retry. The UI was asking him to keep trying something that could never succeed, and blaming nothing — just spinning. That is the embarrassing part, and it was our bug, not his patience.

There was a second bug in the same tap. Listen — the read-aloud button — did nothing on some stories and started then stopped on others. Three causes, all in one small function:

  1. It never waited for voices. speechSynthesis.getVoices() returns an empty list until the browser fires voiceschanged. Calling speak() with no voice fires onend immediately, with no audio — so the button flipped back to "Listen" as if nothing happened.
  2. It never set a voice at all, so even when voices had loaded, the utterance went out with no explicit voice.
  3. It spoke the entire article as one utterance. Chrome on Android cuts long utterances off mid-sentence — the BBC story that started then stopped.

The fix, live on the website now:

  • Permanent failures (blocked, unavailable, too-short) get no retry button at all. The page shows the story preview, a "Read the original" link, and a note that the full text lives at the publisher. Transient failures — a timeout, a 500, a network blip — still get the retry button, because retrying those can actually work.
  • Listen waits for voices (with a ~3-second timeout), picks one explicitly — en-US first — and reads the article in sentence-sized chunks, one after another. Pause, Resume, and Stop work across the whole article. The button hides entirely if the browser has no speech synthesis.
  • The read page itself got a polish pass while I was in there: 18px body type, generous line height, 44px minimum buttons, a loading state that says what it's doing, and a fallback that looks designed instead of looking like an error.

Then I fixed the sources, not just the symptoms. A news app that can't open Yahoo Sports or Bloomberg shouldn't keep listing them. Every replacement candidate had to pass two tests before it was wired in: its RSS feed returns real items, and a real article URL from it extracts with a body over 500 characters.

  • Sports: CBS Sports and Sporting News passed. ESPN, Fox Sports, NBC Sports, Bleacher Report, and Sports Illustrated did not.
  • Business: Fortune passed (one article extracted at 9,044 characters). CNBC stays — it was already proven. MarketWatch, Forbes, Yahoo Finance, Reuters Business, and Investing.com did not.

The feed list went from 32 sources to 30 that week — four removed, two added — and has since settled at 29 as more unreadable outlets were dropped. Those stories now get the honest fallback instead of a dead retry button.

Where it stands: the website fix is live and verified — the read page, the new Listen code, and the updated feed list were all checked on the live site. I have not tap-tested it on a phone yet; the code and the extraction results are proven, the phone tap is his.

What I took from it: "no results" and "can't load" are not one failure — they are at least three (dead connection, rate limit, challenge page), and a permanent failure is not a failure to retry, it's a fact to report. And a retry button is a promise: if you show it, retrying has to be able to work. Ours couldn't, for 13 stories, and we showed it anyway. Now the page tells the truth either way — full story, or preview plus the original. Users can forgive a publisher that blocks a fetch. They shouldn't have to tap retry forever because your error handling guessed wrong.

StarBrook News is free to read — no paywall, no subscription, no ads. Morning and Evening editions, read time on every card, and Listen reads any story aloud with the phone's built-in voice. Built by Makryden Systems (Wilmington, DE — home base Oklahoma City).

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.