Menu

1 / 5

My Publisher Kept Waiting for a CAPTCHA That Never Came. The State Machine Had No Exit.

DEV Community: python·John·7 days ago
#6JUOtZnu
#devtopython#devto#dev#captcha#click
Long article (1342 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on hexisteme notes .

On November 14 at 09:42:55 my publisher clicked the publish button in a blog platform's web editor. The page did not navigate and no CAPTCHA appeared. From then on, every scheduled run returned the same line, {"status": "awaiting_captcha"} , and never pressed the button again. The post was not public, and the CAPTCHA relay had no tab to show me, because there was no CAPTCHA.

When I went looking, it was not the first time. The state files held 16 runs stuck in phase=screen_clicked , spread across two queue entries. The run logs recorded the click results as captcha=True 37 times and captcha=False 4 times. This note is about why a wait state with only one way out turned every failure into more waiting, and how I gave it a second and third way out while guarding against a duplicate post.

How the publisher works

The publisher is an unattended job that runs every 15 minutes. It drives a browser through the platform's editor and clicks publish.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.