Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Not Every Run That Claimed "Verified Live" Actually Checked the URL

On November 22nd I shipped a fix to my own publishing pipeline: never trust the dev.to API's 201 response as proof an article is actually live. The POST can succeed and the server can still be wrong, slow to index, or lying about what it stored — so from that point on, every run was supposed to follow the publish call with a fresh HTTP GET of the resulting URL and log the result as evidence, not…

On November 22nd, the reporter implemented a change to their publishing pipeline: they stopped relying solely on the dev.to API's 201 response to confirm an article was live. Instead, every subsequent run was supposed to immediately follow the publish call with a fresh HTTP GET of the resulting URL and log the result as evidence.

However, the reporter later realized they hadn't actually checked if this fix was working properly. They reviewed the log file and found that four runs between November 24th and 25th didn't log whether they performed the verification or not. The reporter created a script to test the four skipped runs, and all four returned successful 200 status codes with real byte counts and present title tags.

This demonstrates that the log's "Status: Completed" line doesn't accurately reflect whether the verification was performed or not. The reporter believes the issue stems from a documentation-process bug, not a code bug. The fix was intended to be a practice written down as a one-time decision, but it isn't enforced by any code or required in the log format.

To address this, the reporter plans to add a line to the logging convention: every "Status" entry must either show the GET-and-check result for each URL published or explicitly say "not verified this run" if it was skipped. This will ensure honesty by clearly indicating whether the verification step was completed or not.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Recovering a GBase 8a Node Accidentally Marked as unavailable

GBase 8a, the China-domestically developed MPP analytical database from GBASE, lets you mark a node unavailable when its data is unrecoverable.

  • Accidentally marked node as unavailable in GBase 8a cluster
  • Manual recovery process outlined for faulty node
  • Risks include data changes and business workload impact

One page, four addresses: the SEO bugs your browser can't show you

I audited a site I built last week. Fifty-four pages, mostly hand-written HTML, deployed on Cloudflare. I ran Lighthouse first, got a number I was happy with, and closed it.

  • Four significant SEO bugs go unnoticed by browsers
  • Canonical tag, JSON-LD block, and breadcrumb trail discrepancies
  • Static site causes 40-second load times and crawler timeouts

More from Thursday 26 November →