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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Fix error message being printed needlessly
Ondra Urban8333d21d8cba
diff --git a/src/session_pool/session.js b/src/session_pool/session.jsindex 6a08f8d1f..4498bcce4 100644--- a/src/session_pool/session.js+++ b/src/session_pool/session.js@@ -352,7 +352,9 @@ export class Session {}}// if invalid cookies are provided just log the exception. No need to retry the request automatically.- this.log.error('Could not set cookies.', { errorMessages });+ if (errorMessages.length) {+ this.log.error('Could not set cookies.', { errorMessages });+ }}/**