Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(crawler): Skip validating URLs in metascrapper as it was already being validated. Fixes #22

MohamedBassema9242a56d909
diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts
index cce409e5..c9a1189c 100644
--- a/apps/workers/crawlerWorker.ts
+++ b/apps/workers/crawlerWorker.ts
@@ -222,6 +222,9 @@ async function runCrawler(job: Job<ZCrawlLinkRequest, void>) {
const meta = await metascraperParser({
url,
html: htmlContent,
+ // We don't want to validate the URL again as we've already done it by visiting the page.
+ // This was added because URL validation fails if the URL ends with a question mark (e.g. empty query params).
+ validateUrl: false,
});
logger.info(`[Crawler][${jobId}] Done parsing the content of the page.`);