Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(v1/crawl-status-ws): update behavior to ignore errors like regular crawl-status (#1234)

Gergő Móricz8c42b08b7ebd
diff --git a/apps/api/src/controllers/v1/crawl-status-ws.ts b/apps/api/src/controllers/v1/crawl-status-ws.ts
index 41f990949..8a056cc60 100644
--- a/apps/api/src/controllers/v1/crawl-status-ws.ts
+++ b/apps/api/src/controllers/v1/crawl-status-ws.ts
@@ -108,7 +108,7 @@ async function crawlStatusWS(
data: job.returnvalue,
});
} else {
- return close(ws, 3000, { type: "error", error: job.failedReason });
+ // Crawl errors are ignored.
}
}