Monitoring our own product-export feeds with n8n and OhDear (and a bug I found while writing this)
Fabian Blechschmidt
Last post was about how a product export can get stuck forever after a queue worker gets OOM-killed mid-generation — is_running never resets, the export silently stops updating, and nothing in Shopware tells you. That post is exactly why this workflow exists. We run about 20 product-export feeds across several shops (Google Shopping, Idealo, Geizhals, a couple of affiliate networks), and Shopware has no built-in „tell me if a feed goes stale“ alerting. So we built one ourselves in n8n: twice a day, check every feed URL, and if one is down or too old, ping OhDear. Going through it node by node to write this post, I actually found a real bug in our own workflow that three months of it running quietly had never surfaced. Feels appropriate to admit that here rather than pretend I only ever write things that work.
The shape of the workflow
Two triggers feed the same path: a manual trigger for testing, and a Schedule Trigger on 14 */12 * * * — 00:14 and 12:14 every day. The odd :14 offset isn’t important, it’s just habit: don’t put your cron on the dot with everyone else’s.
Both triggers lead into a Code node that hardcodes the list of feeds to check — one object per feed, with the feed’s URL and a per-feed timeout in seconds (mostly 86400, i.e. „flag it if it’s more than a day old“):
return [
{
url: "https://shop1.example.org/store-api/product-export/EXAMPLETOKEN000000000001/affiliate-geizhals.csv",
timeout: 86400,
},
{
url: "https://shop1.example.org/store-api/product-export/EXAMPLETOKEN000000000011/google-shop1.xml",
timeout: 86400,
},
// ...17 more, one entry per feed across several shops
];
(URLs and access tokens above are placeholders — the real workflow points at our actual shops, obviously not something I’m going to paste into a public post.) From there, a Loop Over Items node (n8n’s „Split In Batches“) walks that list one feed at a time.
Per feed: is it up, and is it fresh
For each feed, an HTTP Request node does a HEAD request — we don’t need the file body, just the status code and the Last-Modified header — with neverError: true and fullResponse: true, so a 404 or 500 doesn’t throw an exception, it just becomes a normal response we can inspect ourselves.
A returns 200 node checks the status code. If it’s not 200, straight to the error path. If it is, a Max Age node (subtractFromDate) computes mustBeCreatedAfter = now - timeout for that specific feed, and an Is too old node compares that cutoff against the Last-Modified header:
Small confession while I was re-reading this for the post: the node is called Is too old, but the true branch actually means „no, it’s fine“ — mustBeCreatedAfter being before Last-Modified means the file was touched after the cutoff, i.e. it’s fresh. The true output loops back into Loop Over Items silently; the false output is the one that means „yes, actually too old“ and triggers the error path. The logic is correct, the name is just backwards from what I’d write today. Renaming it has been „on the list“ since I built it.
Talking to OhDear
OhDear’s side of this is two URLs, both visible right in the exported JSON: a plain request to https://ping.ohdear.app/<uuid> registers „I’m alive,“ and a POST to https://ping.ohdear.app/<uuid>/failed with a form field failure_message reports a specific failure with a message OhDear shows you in the alert.
The All good node sits on Loop Over Items’s done output (not the per-item loop output), so it only ever fires once, after every feed in the list has been processed — a single heartbeat per run. It’s also flagged executeOnce: true, which is redundant here since it can structurally only ever receive one item anyway, but I’ll take the belt-and-suspenders.
Sitemap error, for a product-export feed. That’s a leftover from an earlier workflow this one was cloned from, which actually did watch sitemap freshness. Harmless — but if you’re ever the one squinting at an OhDear alert email at midnight wondering why it’s talking about a sitemap when it means a Google Shopping feed, that’s why.
The bug I found writing this
This is the part that made writing this post worthwhile beyond just documenting it. Look at how Send error is wired in the exported JSON:
"Send error": {
"main": [
[]
]
}
Empty. Send error doesn’t connect to anything downstream. That matters because of how n8n’s Loop Over Items („Split In Batches“) pattern works: every branch of processing has to loop back into that node’s input to advance to the next item. The Is too old node gets this right — its „too old“ output fires bothSend errorandLoop Over Items in parallel, so an over-age feed still lets the loop continue to the next one:
"Is too old": {
"main": [
[ { "node": "Loop Over Items" } ],
[ { "node": "Send error" }, { "node": "Loop Over Items" } ]
]
}
But returns 200’s false branch — the „this feed didn’t even respond with a 200“ case — only goes to Send error, which is a dead end. So the moment any feed in the list returns a non-200 (down server, 500, whatever), that execution branch just stops. Every feed after it in the array, in that same run, never gets checked at all — not flagged as an error, not flagged as fine, just silently skipped until the next scheduled run 12 hours later. With ~20 feeds in the list, one hard-down feed near the top could mean most of the rest go unchecked for half a day, and the workflow gives you no indication that happened — from the outside it looks like it just ran and finished.
The fix is the same one-line pattern already used on Is too old: wire returns 200’s false output to both Send error and Loop Over Items. Easy fix, easy to miss — the n8n canvas renders the connection fine either way, so this isn’t something you’d necessarily notice clicking through it visually. I only caught it because writing this post meant reading the raw exported JSON line by line instead of eyeballing the canvas.
TL;DR
The workflow: twice daily, HEAD-request every product-export feed URL, check for 200 plus a Last-Modified header newer than a per-feed timeout, and ping OhDear’s plain URL on a clean run or its /failed URL with a message per broken feed. Two things surfaced while writing this up that hadn’t been obvious from clicking through the canvas: the Is too old node’s true branch actually means „fresh, all fine“ despite the name, and — the real find — returns 200’s false branch is a dead end that breaks out of the batch loop early, silently skipping every feed after a down one until the next scheduled run.
If you’ve ever found a bug in your own automation only because you had to explain it to someone else, you know the feeling. Drop me an email if you’ve got a similar OhDear/n8n setup — curious how others handle staggering these checks.
Based on a direct read of the exported n8n workflow JSON („Check existance and age of BTS Feeds“), sanitized for this post — real shop domains and Shopware product-export access tokens replaced with shopN.example.org / EXAMPLETOKEN... placeholders, OhDear ping UUID zeroed out. Sanitized copy used for this writeup: ~/shopware-hidden-gems/n8n-feed-monitor-sanitized.json. Node-by-node behavior (HTTP Request options, If-node conditions, Split In Batches outputs, the empty „Send error“ connections array) read directly from that JSON, not from a live n8n canvas or a live execution — the dead-end-branch bug is a static read of the connections graph, not something reproduced by triggering an actual feed outage.