The parser ran clean on my laptop and returned nothing from staging. Same commit, same target page, same selectors.
I spent most of a day on the usual suspects: timeouts, missing headers, an unfollowed redirect. None of it. Then I diffed the raw HTML the two machines actually received, and there were two different pages. The retailer was serving a localized catalog based on where the request came from: my home connection got one currency, one set of in-stock variants, one markup layout. A server in a datacenter got another.
My machine was not just a different runtime. It was a different customer.
That is the part of "works on my machine" I underestimated for a long time. It usually gets discussed as dependency versions and config, so it gets fixed with containers and lockfiles. But for anything that reads an external site, the environment also includes IP geography, locale headers, cookie and session state, and whatever the other side chooses to do with them. None of that ships in the image.
What I do differently now on catalog pipelines: I store the raw response next to the parsed result, and I test parsers against saved fixtures instead of live pages. When output shifts, I can tell within a minute whether the page changed or my code did.
And the expensive failure here is not the empty result. It is the partial one, a parse that succeeds against the wrong page and quietly writes plausible numbers into your catalog.
If you run scrapers in production, I'd want to know whether you keep the raw responses, or only the parsed rows...