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.

Change session cookie setting error log to debug

Ondra Urban5f04bc216c21
diff --git a/src/session_pool/session.js b/src/session_pool/session.js
index ee777d346..2d11c1902 100644
--- a/src/session_pool/session.js
+++ b/src/session_pool/session.js
@@ -356,7 +356,7 @@ export class Session {
}
// if invalid cookies are provided just log the exception. No need to retry the request automatically.
if (errorMessages.length) {
- this.log.error('Could not set cookies.', { errorMessages });
+ this.log.debug('Could not set cookies.', { errorMessages });
}
}