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.

[DOCS] Added error warning to docs. (#626)

petrpatekf0559a3c64ce
diff --git a/src/session_pool/session_pool.js b/src/session_pool/session_pool.js
index 23a93079c..c4fb0dcba 100644
--- a/src/session_pool/session_pool.js
+++ b/src/session_pool/session_pool.js
@@ -22,6 +22,7 @@ import { ACTOR_EVENT_NAMES_EX } from '../constants';
* @property {string} [persistStateKeyValueStoreId] - Name or Id of `KeyValueStore` where is the `SessionPool` state stored.
* @property {string} [persistStateKey="SESSION_POOL_STATE"] - Session pool persists it's state under this key in Key value store.
* @property {CreateSession} [createSessionFunction] - Custom function that should return `Session` instance.
+ * Any error thrown from this function will terminate the process.
* Function receives `SessionPool` instance as a parameter
*/