Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Added a TODO

Jan Curn79b4e7b8bfa5
diff --git a/src/basic_crawler.js b/src/basic_crawler.js
index e5a79adf2..729211e6d 100644
--- a/src/basic_crawler.js
+++ b/src/basic_crawler.js
@@ -250,6 +250,7 @@ class BasicCrawler {
async _pauseOnMigration() {
await this.autoscaledPool.pause(SAFE_MIGRATION_WAIT_MILLIS)
.catch(() => {
+ // TODO: How can we be sure it's the right exception? We should check it
log.error('BasicCrawler: The crawler was paused due to migration to another host, '
+ 'but some requests did not finish in time. Those requests\' results may be duplicated.');
});