Skip to content

Commit 174e4dc

Browse files
committed
fix(rss): skip items with no identifiable GUID to avoid idempotency key collisions
1 parent c378d9e commit 174e4dc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • apps/sim/lib/webhooks/polling

apps/sim/lib/webhooks/polling/rss.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ async function processRssItems(
297297
item.link ||
298298
(item.title && item.pubDate ? `${item.title}-${item.pubDate}` : '')
299299

300+
if (!itemGuid) {
301+
logger.warn(
302+
`[${requestId}] Skipping RSS item with no identifiable GUID for webhook ${webhookData.id}`
303+
)
304+
continue
305+
}
306+
300307
await pollingIdempotency.executeWithIdempotency(
301308
'rss',
302309
`${webhookData.id}:${itemGuid}`,

0 commit comments

Comments
 (0)