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.

chore: do not fail when setting status message times out

Martin Adámekc7488c461430
diff --git a/packages/basic-crawler/src/internals/basic-crawler.ts b/packages/basic-crawler/src/internals/basic-crawler.ts
index 6a09799b2..aab11e3cb 100644
--- a/packages/basic-crawler/src/internals/basic-crawler.ts
+++ b/packages/basic-crawler/src/internals/basic-crawler.ts
@@ -755,8 +755,8 @@ export class BasicCrawler<Context extends CrawlingContext = BasicCrawlingContext
await addTimeoutToPromise(
() => client.setStatusMessage!(message, options),
1000,
- `setting status message timed out`,
- );
+ 'Setting status message timed out after 1s',
+ ).catch((e) => this.log.warning(e.message));
}
private getPeriodicLogger() {