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.

Bugfix: PuppeteerPool was incorrectly overriding proxyUrls even if they were not defined.

Jan Curnf814b88d537f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1699de4f4..721150f64 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,13 @@
+xxx
+===================
+- Bugfix: PuppeteerPool was incorrectly overriding `proxyUrls` even if they were not defined.
+
0.9.15 / 2018-11-30
===================
- Upgraded Puppeteer to 1.11.0
- **DEPRECATION WARNING:** `Apify.utils.puppeteer.enqueueLinks()` now uses an options object instead of individual parameters
and supports passing of `userData` to the enqueued `request`. Previously: `enqueueLinks(page, selector, requestQueue, pseudoUrls)`
Now: `enqueueLinks({ page, selector, requestQueue, pseudoUrls, userData })`. Using individual parameters is **DEPRECATED**.
-
0.9.14 / 2018-11-27
===================
diff --git a/src/puppeteer_pool.js b/src/puppeteer_pool.js
index 22d00291d..1c4532d15 100644
--- a/src/puppeteer_pool.js
+++ b/src/puppeteer_pool.js
@@ -179,7 +179,7 @@ class PuppeteerPool {
this.retireInstanceAfterRequestCount = retireInstanceAfterRequestCount;
this.killInstanceAfterMillis = killInstanceAfterMillis;
this.recycledDiskCacheDirs = recycleDiskCache ? new LinkedList() : null;
- this.proxyUrls = _.shuffle(proxyUrls);
+ this.proxyUrls = proxyUrls ? _.shuffle(proxyUrls) : null;
this.launchPuppeteerFunction = async () => {
// Do not modify passed launchPuppeteerOptions!
const opts = _.clone(launchPuppeteerOptions) || {};