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